Skip to main content

SSH configuration management

Project description

A very small and smart SSH configuration tool.

Quick start

Install from pip or run from source code

$ pip install ssh.py

Or

$ pip install -r requirements.txt
$ python ssh.py -h

Get all SSH key in local host

$ python ssh.py list key
+-----------------------+
| Private Key Name      |
+-----------------------+
| aws.pem               |
| github_rsa            |
| gitlab.com_rsa        |
| gitlab_rsa            |
| tmp                   |
| tmp1                  |
+-----------------------+

Get all SSH host config information

(ssh.py)  ssh.py git:(master)  python ssh.py list host
+-------------------------+----------------------------------------------------+-------------+----------------------------------+
| host                    | hostname                                           | user        | identityfile                     |
+-------------------------+----------------------------------------------------+-------------+----------------------------------+
| ['test1112.me']         | ec2-xx-xxx-xxx-139.us-xxxx-2.compute.amazonaws.com | xxx-user    | ['~/.ssh/dddddddd-aws.pem']      |
| ['github.com']          | ['github.com']                                     | xxxxxxxxxxx | ['~/.ssh/github_rsa']            |
| ['gitlab.com']          | ['gitlab.com']                                     | xxxxxxxx    | ['~/.ssh/gitlab.com_rsa']        |
+-------------------------+----------------------------------------------------+-------------+----------------------------------+

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

ssh.py-0.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

ssh.py-0.1-cp27-none-macosx_10_12_intel.whl (5.8 kB view hashes)

Uploaded CPython 2.7 macOS 10.12+ intel

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page