SSH Menu is a Perl-based utility that leverages your .bash_history
, SSH configuration files in $HOME/.ssh/
, and Midnight Commander hotlist in $HOME/.config/mc/hotlist
to provide a convenient user interface for managing and initiating SSH connections. It automatically parses your history, SSH configuration, and MC hotlist to prioritize frequently used connections, making it easier to access your most important servers.
- Easy-to-use interface for selecting SSH connections.
- Integration with
.bash_history
to remember and prioritize frequently used connections. - Support for both SSH and Mosh (Mobile Shell) connections.
Q
,q
, orCtrl+Q
: Exit the SSH Menu.Enter
: Connect to the selected SSH connection.M
: Enable Mosh for the current session.S
: Disable Mosh for the current session.
It's convenient to bind the SSH Menu to a hotkey using your X11 window manager. This allows you to quickly open the menu with a keyboard shortcut.
Before installing SSH Menu, ensure you have Perl and the necessary Perl modules installed on your system. On Ubuntu, you can install the Curses::UI Perl module using apt-get
:
sudo apt-get install libcurses-ui-perl
For other systems, you may install Curses::UI using CPAN:
cpan Curses::UI
To install SSH Menu, run the following commands:
mkdir -p $HOME/.local/bin
curl -o $HOME/.local/bin/ssh-menu https://raw.githubusercontent.com/azazar/ssh-menu/master/ssh-menu
chmod +x $HOME/.local/bin/ssh-menu
Ensure that $HOME/.local/bin
is in your PATH so that you can run ssh-menu
from anywhere.
SSH Menu is licensed under the GNU General Public License v3.0 (GPLv3).