Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(GATEWAY_IP, username="root",password="X", timeout=2)
- command = "ssh root@" + ip_host + " 'touch testing'"
- (stdin, stdout, stderr) = ssh.exec_command(command)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement