Skip to content

A very simple terminal tool that renders an interactive menu with your ssh profiles listed

Notifications You must be signed in to change notification settings

vkushnir/ssh-menu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sshmenu

sshmenu is a very simple terminal tool that reads your ssh-config
and renders an interactive menu with your ssh profiles listed

Installation

Requires:

  • python3
  • pip

Install:

$ sudo pip install ssh-menu

Uninstall:

$ sudo pip uninstall ssh-menu

Note: sshmenu depends on a config file located in your user-home/.ssh folder
You can find examples here

Alias

You can alias sshmenu to make it easier to use

Bash:

$ echo 'alias ssm="sshmenu"' >> ~/.bashrc
$ source ~/.bashrc

Zsh:

$ echo 'alias ssm="sshmenu"' >> ~/.zshrc
$ source ~/.zshrc

Now you can just enter ssm to open sshmenu

TMUX

Checks if TMUX is running, and if so, it uses it. When ssh starts, a window is created with the name ssh:host. If the window already exists, it switches to the existing window.

add update environment to ~/.tmux.conf

set-option -g update-environment "SSH_AUTH_SOCK SSH_CONNECTION DISPLAY"

Docker

Running in docker (why? I don't know):

docker run -it -v $PWD/config:/root/.ssh/config antonjah/ssh-menu

Todo

  • Enable adding profiles
  • Custom profile location
  • Handle output even if session dies unexpectedly

About

A very simple terminal tool that renders an interactive menu with your ssh profiles listed

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 95.1%
  • Dockerfile 4.9%