同一电脑多个git账户的多个ssh-key的管理

1.打开管理员cmd.exe

阿里云文档》配置SSH密钥:https://help.aliyun.com/document_detail/153709.html

阿里云文档》常见问题》如何在同一台电脑上配置多个SSH Key : https://help.aliyun.com/document_detail/322237.html

 

2.配置config:  C:\Users\xx\.ssh

# Codeup
Host codeup_1
HostName codeup.aliyun.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/codeup_1
User xx@163.com
  
# Codeup 
Host codeup_3
HostName codeup.aliyun.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/codeup_3
User xx@163.com
  

 

 

 

       

 

posted @ 2021-04-18 16:52  Peter.Jones  阅读(46)  评论(0)    收藏  举报