版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36209121/article/details/91409790
一个账户多仓库使用
修改配置文件 config 文件, 在~/.ssh/目录下找config文件(如果不存在, 新建)
文件格式内容如下: 按照自己需求配置
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/test-computer
Host demo.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/demo-computer
Host gitee.com
HostName gitee.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/test_gitee