GGH is a small CLI application that recalls your SSH sessions and searches your SSH configuration file. It's a lightweight CLI wrapping SSH commands (you must have SSH installed), but it does not replace SSH:
# Use it just like you're using SSHggh root@server.comggh root@server.com -p2440 # Run it with no arguments to get interactive list of the previous sessionsggh # Run it with - to get interactive list of all of your ~/.ssh/config listingggh - # Run it with - STRING to get interactive filtered list of your ~/.ssh/config listingggh - stageggh - meta-servers # To get non-interactive list of history and config, runggh --configggh --history
When you run ggh
it will give you an interactive list of sessions to conveniently reconnect. If you want GGH to scan your ~/.ssh/config
file, you can run ggh -
to get an interactive list of configured connections:
This CLI is a lightweight Golang package that works on Unix and Windows systems. The project source code is available on GitHub at byawitz/ggh.
GGH has installers for Windows and Unix:
# Unix basedcurl https://raw.githubusercontent.com/byawitz/ggh/master/install/unix.sh | sh # Windowspowershell -c "irm https://raw.githubusercontent.com/byawitz/ggh/master/install/windows.ps1 | iex" # Gogo install github.com/byawitz/ggh@latest