Pythonb自动化管理

来自linux中国网wiki
跳到导航 跳到搜索

polysh

➜  py vi  hosts
➜  py polysh --ssh='exec ssh -p 22 -i ~/.ssh/id_rsa' --user=evan --hosts-file=hosts
waiting (1/1)> ls            
192.168.10.5 : [email protected]'s password: 
192.168.10.5 : Permission denied, please try again.
192.168.10.5 : [email protected]'s password: 
waiting (1/1)> passwd