24.01.2025

Installing and using GGH on Unix, Windows and Go

GGH is a tool for working with SSH, providing a lightweight and fast wrapper for standard SSH commands. It is designed to simplify interactions with servers and improve convenience when dealing with previous sessions and SSH configurations.

Installation

To set up, execute one of these scripts or fetch the most recent version from the release page.(GitHub)

For Unix-like systems:

curl https://raw.githubusercontent.com/byawitz/ggh/master/install/unix.sh | sh

For Windows:

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

For Go:

go install github.com/byawitz/ggh@latest

Usage

To connect via SSH:

ggh root@server.com ggh root@server.com -p2440

Running without arguments: Shows an interactive list of your previous sessions:

ggh

Running with the - flag: Displays an interactive list of all entries from the ~/.ssh/config file:

ggh -

Filtering entries in ~/.ssh/config: Specify a string to filter:

ggh - stage ggh - meta-servers

To get a non-interactive list of history or configuration:

ggh --config ggh --history

Important: GGH is not a replacement for SSH.

GGH won’t function properly if SSH is either not installed or not included in the system path. It’s designed to serve as a quick and efficient wrapper around your SSH commands.

Explore More SSH Resources

If you’re looking to deepen your knowledge, our knowledge base contains a wealth of additional resources on SSH and related tools. From advanced SSH configuration tips and securing your connections, to troubleshooting common issues and automating SSH tasks, we’ve got you covered. Whether you’re just starting out or looking to refine your skills, you’ll find step-by-step guides and expert advice to help you enhance your understanding and improve your workflow.

FAQ