Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect("hoge.example.com", username="test", password="testpass")
- stdin, stdout, stderr = ssh.exec_command('md5sum .bashrc')
- for line in stdout:
- print(line.strip('n'))
- ssh.close();
Add Comment
Please, Sign In to add comment