ssh配置管理
ssh.p的Python项目详细描述
一个非常小和智能的ssh配置工具。
快速启动
从PIP安装或从源代码运行
$ pip install ssh.py
或
$ pip install -r requirements.txt $ python ssh.py -h
获取本地主机中的所有ssh密钥
$ python ssh.py list key +-----------------------+ | Private Key Name | +-----------------------+ | aws.pem || github_rsa || gitlab.com_rsa || gitlab_rsa || tmp || tmp1 | +-----------------------+
获取所有ssh主机配置信息
(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']| +-------------------------+----------------------------------------------------+-------------+----------------------------------+