【工具】ssh公钥配置

2019-11-25  本文已影响0人  giraffecode9668

按照公钥生成,如果需要生成多个仓库,如gitee、github,为了他们两个能正常使用,在.ssh根目录创建config文件,在文件中填写仓库的配置,主要修改IdentityFile

# gitee
Host gitee.com
HostName gitee.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github
上一篇下一篇

猜你喜欢

热点阅读