Last active
August 29, 2015 14:00
-
-
Save Couto/e8d0f49716cb2a75603a to your computer and use it in GitHub Desktop.
SSH Configuration to allow multiple SSH keys for deployment
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
Host projectname github.com | |
Hostname github.com | |
IdentityFile /home/{{username}}/.ssh/deploy_key_projectname | |
#User username-on-remote-machine | |
Host projectname2 bitbucket.org | |
Hostname bitbucket.org | |
IdentityFile /home/{{username}}/.ssh/deploy_key_projectname2 | |
#User username-on-remote-machine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git clone git@projectname:OrganizationName/project.git
git clone git@projectname2:UserName/project2.git
this way the correct ssh key is used for each project