A very simple interactive ssh profile menu


Keywords
ssh, menu, interactive, python, python3, terminal, terminal-app
Install
pip install ssh-menu==2.0.5

Documentation

sshmenu

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

If sshmenu is executed within a Tmux session, it will automatically create a new pane and connect

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 /home/user/.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 run ssm to open sshmenu

Docker

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

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

Contributors

vkushnir