Last active
February 26, 2019 03:38
-
-
Save rafaelrpbelo/ae284bcbf4981a39990aaaa1e8940348 to your computer and use it in GitHub Desktop.
Git config to choose ssh identity file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
... | |
sshCommand = /usr/bin/ssh -i /home/your_user/.ssh/your_file | |
[user] | |
name = Your User | |
email = your@email.com.br | |
... | |
OR | |
GIT_SSH_COMMAND="/usr/bin/ssh -i /home/your_user/.ssh/your_file" | |
OR | |
git config --local core.sshCommand "/usr/bin/ssh -i /home/me/.ssh/id_rsa_foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment