SSH增强工具 sshpt

GPLv3
Python
Linux
2010-03-29
红薯

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>, --file=<file>
                        Location of the file containing the host list.
  -o <file>, --outfile=<file>
                        Location of the file where the results will be saved.
  -a <file>, --authfile=<file>
                        Location of the file containing the credentials to be
                        used for connections (format is "username:password").
  -t <int>, --threads=<int>
                        Number of threads to spawn for simultaneous connection
                        attempts [default: 10].
  -u <username>, --username=<username>
                        The username to be used when connecting.
  -P <password>, --password=<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 <file>, --copy-file=<file>
                        Location of the file to copy to and optionally execute
                        (-x) on hosts.
  -D <path>, --dest=<path>
                        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 <seconds>, --timeout=<seconds>
                        Timeout (in seconds) before giving up on an SSH
                        connection (default: 30)
  -s, --sudo            Use sudo to execute the command (default: as root).
  -U <username>, --sudouser=<username>
                        Run the command (via sudo) as this user.

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

linux运维人员必会运维工具

Linux运维工程师工作职责 从IT运维整体方面来讲,运维工程师的职责分为:硬件层面、网络层面、系统层面、软件层面; 硬件层面,负责硬件设备的选型、配置设定、服务器硬件采购、机柜、机房I...

2018/09/23 18:21
37
1
提升逼格.Summary.提升逼格的那些运维开发资料汇总?

## 开发相关 ### FLASK专区 * awesome-flask https://github.com/humiaozuzu/awesome-flask ### 环境管理 * p:非常简单的交互式 python 版本管理工具。[官网](https://github.com/qw3rtman...

2016/06/15 18:07
965
1

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部