| Crates.io | sgh |
| lib.rs | sgh |
| version | 0.1.0 |
| created_at | 2025-02-20 06:27:46.446939+00 |
| updated_at | 2025-02-20 06:27:46.446939+00 |
| description | A TUI tool for ssh |
| homepage | https://github.com/mei28/sgh |
| repository | https://github.com/mei28/sgh |
| max_upload_size | |
| id | 1562299 |
| size | 81,728 |
sgh is a TUI (Text-based User Interface) tool that parses and aggregates multiple SSH configuration files, allowing you to search and connect to your SSH hosts effortlessly. With a built-in search bar, simple keybindings, and customizable command templates (powered by Handlebars), you can quickly find the right host and jump into your SSH session.
/etc/ssh/ssh_config and ~/.ssh/config, merging their contents seamlessly.ssh "{{{name}}}") to define how you connect to a host.--on-session-start-template and --on-session-end-template let you run extra commands before and after SSH.git clone https://example.com/your/sgh.git
cd sgh
cargo install --path .
Or build locally:
cargo build --release
./target/release/sgh --help
If you have Nix and Flakes enabled:
# Build for your system, e.g. x86_64-linux
nix build .#sgh
./result/bin/sgh --help
# Or simply run
nix run .#sgh -- --help
sgh [OPTIONS]
Key CLI Options:
# Fuzzy-search for "web" as soon as it starts
sgh --search web
Tab-based UI: Switch between a search mode and a command history mode in the same TUI. RemoteForward: Display RemoteForward rules similarly to LocalForward. Extensive Hooks: More advanced session templates or triggers.
MIT