Metadata-Version: 2.0
Name: ssh.py
Version: 0.1
Summary: SSH configuration management
Home-page: https://github.com/xiaopeng163/ssh.py
Author: Peng Xiao
Author-email: xiaoquwl@gmail.com
License: Apache 2.0
Keywords: GitHub SSH
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: cliff (>=2.2.0)

ssh.py
======

A very small and smart SSH configuration tool.


Quick start
------------

Install from pip or run from source code

.. code-block:: bash

  $ pip install ssh.py

Or

.. code-block:: bash

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


Get all SSH key in local host

.. code-block:: bash

  $ 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

.. code-block:: bash

  (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']        |
  +-------------------------+----------------------------------------------------+-------------+----------------------------------+


