美文网首页
【工具】ssh公钥配置

【工具】ssh公钥配置

作者: giraffecode9668 | 来源:发表于2019-11-25 15:39 被阅读0次

    按照公钥生成,如果需要生成多个仓库,如gitee、github,为了他们两个能正常使用,在.ssh根目录创建config文件,在文件中填写仓库的配置,主要修改IdentityFile

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

    相关文章

      网友评论

          本文标题:【工具】ssh公钥配置

          本文链接:https://www.haomeiwen.com/subject/buhjwctx.html