GGH is a Lightweight CLI to Recall Your SSH Sessions

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 SSH
ggh This email address is being protected from spambots. You need JavaScript enabled to view it.
ggh This email address is being protected from spambots. You need JavaScript enabled to view it. -p2440

# Run it with no arguments to get interactive list of the previous sessions
ggh

# Run it with - to get interactive list of all of your ~/.ssh/config listing
ggh - 

# Run it with - STRING to get interactive filtered list of your ~/.ssh/config listing
ggh - stage
ggh - meta-servers

# To get non-interactive list of history and config, run
ggh --config
ggh --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 based
curl https://raw.githubusercontent.com/byawitz/ggh/master/install/unix.sh | sh

# Windows 
powershell -c "irm https://raw.githubusercontent.com/byawitz/ggh/master/install/windows.ps1 | iex"

# Go
go install github.com/byawitz/ggh@latest

The post GGH is a Lightweight CLI to Recall Your SSH Sessions appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

Read more

© 2025 Extly, CB - All rights reserved.