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

相關文章
相關標籤/搜索