Skip to content

Instantly share code, notes, and snippets.

@rafaelrpbelo
Last active February 26, 2019 03:38
Show Gist options
  • Save rafaelrpbelo/ae284bcbf4981a39990aaaa1e8940348 to your computer and use it in GitHub Desktop.
Save rafaelrpbelo/ae284bcbf4981a39990aaaa1e8940348 to your computer and use it in GitHub Desktop.
Git config to choose ssh identity file
[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