https://blog.csdn.net/u013378029/article/details/88309165
cd ~/.ssh ssh-keygen -t rsa -C "second@mail.com" ssh-agent bash ssh-add ~/.ssh/id_rsa_second
添加.ssh目前增加config文件
#Default github user( first@mail.com) Host gitee.com HostName gitee.com User qixiu_one IdentityFile ~/.ssh/id_rsa #second user(ps_0921@163.com) Host gitee-second HostName gitee.com User qixiu_two IdentityFile ~/.ssh/id_rsa_so # the 3 user(ps_0921@163.com) Host giteefe.com HostName gitee.com User kiwi_fe IdentityFile ~/.ssh/id_rsa_fe
测试
$ ssh -T git@gitee-second Hi kiwigit! You've successfully authenticated, but GITEE.COM does not provide shell access.
添加
git remote add test git@gitee-second:second/test.git #并非原来的git@gitee.com:second/test.git
添加ssh到gitee, 注意项目成员是否邀请