cd ~/.ssh
ssh-keygen -t rsa -C "your email"
ssh-add rsa file
ssh-agent bash (if necessary)ssh-agent -s (if necessary)
vim config
Host gitee.comIdentityFile ~/.ssh/rsa fileUser your email
https://blog.csdn.net/talice/article/details/79830153