ssh-keygen -t rsa -C 'second@mail.com' -f id_rsa_name
#name中区分不同远程仓库名字
# 多个sshkey生成以后找到~/.ssh 添加config文件
config文件中添加
Host github.com
HostName github.com
User username
IdentityFile ~/.ssh/id_rsa_github
Host bitbucket.org
HostName bitbucket.org
User username
IdentityFile ~/.ssh/id_rsa_bitbucket