Skip to main content

sshmenu

sshmenu is a simple tool for connecting to remote hosts via ssh. Great if you have trouble remembering ip addresses, hostnames, or usernames.

This tool works by using Python’s os.execvp(...), which will replace the current process (python) with ssh to create a seamless transition.

https://i.imgur.com/LGrrENa.gif

Quick Setup

Tested working on macOS High Sierra (10.13.1) and Ubuntu Trusty Tahr (14.04), Xenial Xerus (16.04)

macOS

brew install https://raw.githubusercontent.com/mmeyer724/sshmenu/master/sshmenu.rb
sshmenu

Linux

pip3 install sshmenu
sshmenu

Development

git clone https://github.com/mmeyer724/sshmenu.git
cd sshmenu
pip3 install -r requirements.txt
python3 -m sshmenu

Configuration

On first run an example configuration file will be created for you, along with the path. For reference, I’ve added this information here as well.

OS X

nano ~/Library/Application\ Support/sshmenu/config.json

Linux

nano ~/.config/sshmenu/config.json

Default contents

{
    "targets": [
        {
            "host": "user@example-machine.local",
            "friendly": "This is an example target",
            "options": []
        },
        {
            "command": "mosh",
            "host": "user@example-machine.local",
            "friendly": "This is an example target using mosh",
            "options": []
        }
    ]
}

You can specify additional command line options (see man ssh) as follows:

{
    "targets": [
        {
            "host": "user@example-machine.local",
            "friendly": "An example target listening non-standard port and verbose flag",
            "options" : [
                "-p443",
                "-v"
            ]
        }
    ]
}

Todo

  • Automatically ask to place your ~/.ssh/id_rsa.pub into the remote host’s ~/.ssh/authorized_keys

Metadata

Release files for sshmenu 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sshmenu 0.0.4
File Interpreter ABI Platform
sshmenu-0.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / sshmenu-0.0.4-py2.py3-none-any.whl

Download URL sshmenu-0.0.4-py2.py3-none-any.whl
Size 8.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
38e334f657923f3babd48ff2421d5c3f1739a7e8f56118f66be71440d2a18e05
BLAKE2b-256 checksum
How to use checksums
a7bcbe3ccb96908e1fdbe416c0397f69f0f4edf02260e0ff3ba5e1368b88c0ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page