pscp.pssh的使用
将本地文件批量复制到远程主机上
#-r 递归 -v显示过程 源--目标
[root@centos7 ~]# pscp.pssh -rv -h /root/iplist /root/test/ /mnt
[1] 16:57:01 [SUCCESS] root@172.16.134.128
[2] 16:57:11 [SUCCESS] root@172.16.134.130
[3] 16:57:11 [SUCCESS] root@172.16.134.129
[root@centos7 ~]# pssh -h /root/iplist -i 'ls /mnt'
[1] 16:57:28 [SUCCESS] root@172.16.134.128
hgfs
test
[2] 16:57:28 [SUCCESS] root@172.16.134.129
test
[3] 16:57:28 [SUCCESS] root@172.16.134.130
test