GIT的ssh配置

git 的 ssh生成keys

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
而后一路回车就能够了

解决多个git源的不一样配置文件 .ssh\config

Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_rsa
Host code.aliyun.com
    HostName code.aliyun.com
    RSAAuthentication yes
    User git
    IdentityFile ~/.ssh/id_ali_rsa

参考

https://help.github.com/articles/connecting-to-github-with-ssh/git

相关文章
相关标签/搜索