Friday, June 1, 2012

Git: Specifying Private Key to Use for Git

In the ~/.ssh/config file, add the following lines:

Host gh
        Hostname github.com
        User git
        IdentityFile ~/.ssh/xxxx_rsa

Reference: http://superuser.com/questions/232373/tell-git-which-private-key-to-use

No comments:

Post a Comment