sshed:paramiko 周围的最小 SSH 包装器

时间:2021-06-17 09:22:22
【文件属性】:
文件名称:sshed:paramiko 周围的最小 SSH 包装器
文件大小:14KB
文件格式:ZIP
更新时间:2021-06-17 09:22:22
python ssh paramiko Python 共享 sshed 是一个最小的 paramiko/ssh2 包装器,它使得通过 python 使用 ssh 就像在普通 SSH 中使用它一样。 它将首先使用您已经创建的配置,然后可以通过正在使用它的库传递任何额外的选项。 服务器是可以扩展以执行其他任务的基础对象。 API也非常简单。 文档/回购信息: 文档: : 回购: : 例子 从您的 ~/.ssh/config 使用创建的 ssh 密钥创建服务器。 这也使用主机别名 from sshed import servers server = servers . from_conf ( 'development' ) server . run ( 'whoami' ). output >> [ 'cwood' ] server . run ( 'sudo whoami' ). output >> [ 'root' ] server
【文件预览】:
sshed-master
----MANIFEST.in(19B)
----README.rst(2KB)
----Vagrantfile(4KB)
----.travis.yml(239B)
----setup.py(1KB)
----Makefile(86B)
----docs()
--------conf.py(8KB)
--------index.rst(2KB)
----sshed()
--------exceptions.py(38B)
--------servers()
--------__init__.py(18B)
--------argparse_actions.py(218B)
--------commands.py(547B)
----tests()
--------test_servers.py(1KB)
--------sshconfig(101B)
----requirements.pip(12B)

网友评论