Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Command line SSH menu and helper utility

Project Description

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.

Quick Setup

Tested working on OS X El Capitan (10.11.5) and Ubuntu Trusty Tahr (14.04), Xenial Xerus (16.04)

OS X

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

Linux

pip3 install sshmenu
sshmenu

Development

git clone https://github.com/Mike724/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
Release History

Release History

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sshmenu-0.0.3.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Aug 26, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting