微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

sshpt SSH增强工具

程序名称:sshpt

授权协议: GPLv3

操作系统: Linux

开发语言: Python

sshpt 介绍

SSH Power Tool (sshpt) 可以让你同时向多个SSH服务器上传文件或者执行命令,执行的结果将返回为 CSV 格式数据。

该工具详细的参数如下:

./sshpt.py –help
Usage: sshpt.py [options] [command] [arguments…]

Options:
--version show program’s version number and exit
-h, –help show this help message and exit
-f , –file=
Location of the file containing the host list.
-o , –outfile=
Location of the file where the results will be saved.
-a , –authfile=
Location of the file containing the credentials to be
used for connections (format is “username:password”).
-t , –threads=
Number of threads to spawn for simultaneous connection
attempts [default: 10].
-u , –username=
The username to be used when connecting.
-P , –password=
The password to be used when connecting (not
recommended–use an authfile unless the username and
password are transient
-q, –quiet Don’t print status messages to stdout (only print
errors).
-c , –copy-file=
Location of the file to copy to and optionally execute
(-x) on hosts.
-D , –dest=
Path where the file should be copied on the remote
host (default: /tmp/).
-x, –execute Execute the copied file (just like executing a given
command).
-r, –remove Remove (clean up) the SFTP’d file after execution.
-T , –timeout=
Timeout (in seconds) before giving up on an SSH
connection (default: 30)
-s, –sudo Use sudo to execute the command (default: as root).
-U , –sudouser=
Run the command (via sudo) as this user.

sshpt 官网

http://code.google.com/p/sshpt/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐