Skip to content

shabane/ssht

Repository files navigation

ssht

ssht demo

ssht or ssh-tmux. As a DevOps engineer, every day i used to open a tmux, create many panes and in each of pane i ssh to a host then i set syncronize-pane on to use all the panes at once.

Then I get familiar with sshs tool. it's just a TUI over ssh_config file, which let you search and connect to your ssh host.

I combine this two idea, which the result came out with ssht, a TUI that let you search between your ssh hosts and then open all the hosts that you searched in a tmux session. or you can connect to one host.

Features

  • searchable
  • ssh in a tmux session
  • use red and green color for reachable or unreachable hosts

Installation

To install or update to the latest version of ssht, run the following command in your terminal:

curl -sSL https://raw.githubusercontent.com/shabane/ssht/master/install.sh | bash

This script will automatically detect your OS/architecture, download the correct latest release from GitHub, and install it to ~/.local/bin/ssht.

shortcuts

Key Task
CTRL+G Open Guide Menu
CTRL+W Connect Directly to Selected Host (No Tmux)
CTRL+A Open All Searched Hosts in tmux
CTRL+O Open All Searched Hosts With Synced Pane In tmux
CTRL+N Open All Searched Hosts In New Window On tmux
CTRL+C Quit
Esc Back

Demos

1. Connect to Single Host (Press Enter / CTRL+W for Direct)

Connect One

2. Connect to All (Tailed Mode - CTRL+A)

Connect All Tailed

3. Connect to All with Synced Panes (CTRL+O)

Connect All Synced

4. Connect to All in New Windows (CTRL+N)

Connect All Windows


I guaranty that its work on my machine.

About

a ssh TUI in go, which list all hosts in ~/.ssh/config, and let you connect to hosts it with in tmux

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors