Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 739 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 739 Bytes

cmdscp

基于SSH协议的批量文件传输和命令执行工具

$ ./cmdscp -g demo2 -f test.txt -d "/home" -p /root/pwdfile

  ==================== 191.168.1.1 =======================  
Warning ssh connection failed

  ==================== 191.168.1.2 ======================= 
File sent successfully

  ==================== 191.168.1.3 ======================= 
File sent successfully

$ ./cmdscp -g demo2 -c "id"

  ==================== 191.168.1.1 =======================  
Warning ssh connection failed

  ==================== 191.168.1.2 ======================= 
uid=0(root) gid=0(root) groups=0(root)

  ==================== 191.168.1.3 ======================= 
uid=0(root) gid=0(root) groups=0(root)