0
点赞
收藏
分享

微信扫一扫

Windows下SSH配置多账号


C:\Users\Administrator\.ssh 目录下新建config文件

Windows下SSH配置多账号_git

config文件内容如下

配置了两个账号,举例如下

# github
Host github.com
HostName github.com
IdentityFile ~/.ssh/github_id_rsa
PreferredAuthentications publickey

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


举报

相关推荐

0 条评论