git 配置不同ssh

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.com
IdentityFile ~/.ssh/rsa file
User your email

 

https://blog.csdn.net/talice/article/details/79830153

https://www.cnblogs.com/xiaoaofengyue/p/8080639.html

posted @ 2021-02-05 13:43  仁义礼智信的  阅读(93)  评论(0编辑  收藏  举报