A lightweight CLI tool to manage and switch between multiple SSH configurations easily.
# Install as dev dependency
npm i -D ssh-switch
# Install globally
npm i -g ssh-switch# Show help
sshs
sshs -h
# Add a new SSH config
sshs add
# List all SSH configs
sshs list
# Show current SSH config in use
sshs now
# Switch to a specific config
sshs use <configName>
# Remove a config
sshs remove <configName># Add your work GitHub account
$ sshs add
? Enter a name for this SSH config: work
? Host: github.com
? Path to SSH private key file: ~/.ssh/id_rsa_work
# Add your personal GitHub account
$ sshs add
? Enter a name for this SSH config: personal
? Host: github.com
? Path to SSH private key file: ~/.ssh/id_rsa_personal
# Switch to work account
$ sshs use work
# Check current config
$ sshs now
work is now in useMIT