git 配置多用户

.ssh 下的 config.txt 内容

# 配置github.com
Host github.com                 
    HostName github.com
    IdentityFile ~/.ssh/id_rsa_github
    PreferredAuthentications publickey
    User 289792436@qq.com

# 配置jd git 
Host git.jd.com 
    HostName git.jd.com
    IdentityFile ~/.ssh/id_rsa
    PreferredAuthentications publickey
    User cnooc_zhangjianbin
posted @ 2018-05-22 19:17  张建斌  阅读(791)  评论(0编辑  收藏  举报