A zero-dependency Python 3 tool that reads your ~/.ssh/config and gives you a numbered menu to pick a server and connect. No configuration needed beyond your existing SSH config.
git clone https://github.com/d4rkd0s/ssh-helper.git
cd ssh-helper
# Option A: symlink into your PATH
ln -s "$(pwd)/ssh_helper.py" ~/.local/bin/ssh-helper
# Option B: just run it directly
./ssh_helper.py
Run it. Pick a number. You’re connected.
$ ssh-helper
1 webserver (deploy@10.0.1.50)
2 db-primary (root@10.0.1.51:3306)
3 staging (logan@staging.example.com)
4 jump (logan@jump.example.com:2222)
Enter server # (or name, or q): 3
You can also type the host name instead of the number.
ssh-helper -l # list hosts, don't connect
ssh-helper -s staging # filter by keyword
ssh-helper -c 3 # connect to host #3 directly
ssh-helper -c staging # connect by name
ssh-helper -t # test all connections (5s timeout each)
ssh-helper -r # force-rebuild the cache from ~/.ssh/config
~/.ssh/config for Host entries (skips wildcards like Host *)~/.ssh/connections.json for fast startupThe cache is just a convenience. Delete ~/.ssh/connections.json any time and it rebuilds on next run.
Python 3.6 or later. No pip packages needed. Uses only stdlib modules (json, subprocess, pathlib, re).
MIT. See LICENSE.