环境:ubuntu12.04
$ vim ~/.ssh/config
Host github
Hostname github.com
User aaa
IdentityFile ~/.ssh/id_rsa_pc
$ git clone ssh://github/myrepo.git
环境:ubuntu12.04
$ vim ~/.ssh/config
Host github
Hostname github.com
User aaa
IdentityFile ~/.ssh/id_rsa_pc
$ git clone ssh://github/myrepo.git
转载于:https://my.oschina.net/enyo/blog/157026