7
Using special SSH key for Git
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.
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?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK