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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page