13

Using special SSH key for Git

 3 years ago
source link: https://fann.im/blog/2019/07/23/git-special-ssh-key/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Using special SSH key for Git

Jul 23, 2019

In ~/.ssh/config:

host github.com
    HostName github.com
    IdentityFile ~/.ssh/id_rsa_github
    User git

don’t forget chmod 600 ~/.ssh/config

Or, use GIT_SSH_COMMAND environment variable:

export GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_example -F /dev/null"

Was this page helpful?

</article


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK