Skip to content

Instantly share code, notes, and snippets.

@harshalbhakta
Created August 31, 2014 06:17
Show Gist options
  • Select an option

  • Save harshalbhakta/d2b80813e5231dc6d039 to your computer and use it in GitHub Desktop.

Select an option

Save harshalbhakta/d2b80813e5231dc6d039 to your computer and use it in GitHub Desktop.
Using ssh-add to manage multiple ssh keys.

If we have multiple ssh keys in the ~/.ssh folder.

- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
- ~/.ssh/hb
- ~/.ssh/hb.pub

To use hb key when executing $ ssh user@server.com add the key to ssh-add.

$ ssh-add ~/.ssh/hb

Logout and login again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment