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_historyto remember and prioritize frequently used connections. - Support for both SSH and Mosh (Mobile Shell) connections.
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.
- Type any supported character to filter the connection list.
Up/Down/PgUp/PgDn: navigate the list.Enter: connect to the selected host.Backspace: delete one character from the filter.Ctrl-U: clear the filter.F2: force Mosh for the selected target.F3: force SSH for the selected target.EscorCtrl-Q: quit.
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-perlFor other systems, you may install Curses::UI using CPAN:
cpan Curses::UITo 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-menuEnsure 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).
