Skip to content

Instantly share code, notes, and snippets.

@boina-n
Created June 16, 2017 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boina-n/de3a053aa83a13d51f38b5bbfd673f36 to your computer and use it in GitHub Desktop.
Save boina-n/de3a053aa83a13d51f38b5bbfd673f36 to your computer and use it in GitHub Desktop.
How to make git works with a different private key except id_rsa
host myrepo
HostName 10.10.8.19
IdentityFile ~/.ssh/gitsrv.key
User git
host myconcourse
HostName 10.10.9.28
IdentityFile ~/.ssh/mykey
User concourse-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment