1、生成新的pub
1 | ssh-keygen -t rsa -C "your_email@example.com" -f ~/.ssh/id_rsa_github |
2、打开ssh-agent
1 | eval $(ssh-agent -s) |
3、添加id_rsa_github
1 | ssh-add ~/.ssh/id_rsa_github |
4、粘贴id_rsa_github.pub中的内容至github ssh
5、增加config文件
1 | touch ~/.ssh/config |
6、添加以下内容
GitHub
1 | Host github.com |