git clone指定ssh-key

环境:ubuntu12.04

$ vim ~/.ssh/config
Host github
    Hostname github.com
    User aaa
    IdentityFile ~/.ssh/id_rsa_pc

然后可以使用github替换[email protected]

$ git clone ssh://github/myrepo.git

你可能感兴趣的:(git,指定ssh-key)