Skip to content

Instantly share code, notes, and snippets.

@joelmoss
Created July 2, 2014 09:20
Show Gist options
  • Select an option

  • Save joelmoss/ac4b1bd3405c1080d8b8 to your computer and use it in GitHub Desktop.

Select an option

Save joelmoss/ac4b1bd3405c1080d8b8 to your computer and use it in GitHub Desktop.
Alternative SSH keys
# Create a new SSH keypair with a different name. Eg. `my_alternative_key`, then in your ~/.ssh/config SSH config, add the following. Then you can connect via SSH (and of course Git) using `ssh://git@my_alternative_key:USER/REPO`
Host my_alternative_key
Hostname github.com
IdentityFile /home/MYUSER/.ssh/my_alternative_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment