Simple CLI to manage your ssh shortcuts
npm install -g ssh-host-manager
- Unix system
- NodeJs
- OpenSSH with min version 7.3p1
// Add a new entry with name test
shm add test root@example.com
// Add a new entry with name test with custom port
shm add test root@example.com:443
// Add a new entry with name test with custom ssh key
shm add test root@example.com /home/shyim/.ssh/server.key
// Connect to the new entry
ssh test
-
Remove the file
$HOME/.ssh/manager_hosts
-
Remove the include in
$HOME/.ssh/config