sshmulti v3.0.4
SSHmulti
Manage multiple ssh accounts.
SSHmulti
SSHmulti is a node version of ruby gem SSHwitch that lets you manage different sets of keys in Unix-like systems. The purpose of this is to enable using diferent sets of keys for services such as Github, Heroku, Bitbucket, or any other that requires SSH auth.
Install
npm install -g sshmultiUsage
Backup
Supposing you already have a "work" key pair in your home dir. First do a backup of it:
sshmulti -b workThis will create a copy of the current key pair (the one in ~/.ssh/) in a new dir: ~/.ssh/work
New
To create a new RSA key pair (you need to have ssh-keygen installed) run:
sshmulti -n personalThis will create a new key pair in ~/.ssh/personal
Switch
Make personal the current key pair:
sshmulti personalChange back to work key pair
sshmulti workRename
Change the work key pair to job (both params together separated by comma):
sshmulti -r work,jobThis will move (rename) the folder ~/.ssh/work to ~/.ssh/job
List
List the name of available key pairs
sshmulti -lCurrent
Display the name of the active key pair
sshmulti -cor
sshmultiDelete
Delete the key pair in ~/.ssh/job
sshmulti -d jobIf that key was currently active, it will stay that way until you switch it out again
To Do
Tests :(Done :)