Skip to content

limepillX/sshm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sshm

Simple interactive SSH selector for ~/.ssh/config using gum.

Interface demonstration

Requirements

  • bash
  • ssh
  • gum (brew install gum)

Install

git clone https://github.com/limepillX/sshm
cd sshm
chmod +x install.sh
./install.sh

Usage

sshm

Navigate with arrow keys, select with Enter, exit with Escape.

Categories

Hosts named with : are grouped into categories. The part before : becomes the category name, nested categories are supported.

# ~/.ssh/config
Host bastion
Host eu:prod:web-1
Host eu:prod:db-1
Host eu:staging:api
Host us:prod:web-1

The first menu shows bastion alongside ▶ eu and ▶ us. Selecting a category opens a submenu. Use ← Back to return to the previous level.

How it works

  • Reads Host entries from ~/.ssh/config, ignoring wildcards
  • Groups hosts with : in their name into nested categories
  • Shows an interactive menu via gum
  • Runs ssh <selected-host>

About

Small CLI tool to choose SSH host to connect to that reads ~/.ssh/config.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages