News

GGH is a Lightweight CLI to Recall Your SSH Sessions

Published
GGH is a Lightweight CLI to Recall Your SSH Sessions image

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 root@server.com
ggh root@server.com -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
Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article