git根据ip提交对应服务器

放到.ssh/
命名config

Host 11.0.0.4
HostName 11.0.0.4
User git
Port 22
IdentityFile ~/.ssh/id_rsa

Host github.com
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_github

详情:https://blog.csdn.net/qq_33858250/article/details/81046316
添加多个ssh:https://blog.csdn.net/huang3513/article/details/52837075

你可能感兴趣的:(git根据ip提交对应服务器)