python远程脚本
#!/usr/bin/python
import paramiko
host='192.168.4.101'
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, username='root', password='redhat')
stdin, stdout, stderr = ssh.exec_command('ls /')
ssh.exec_command('touch /hcy.txt')