Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- if __name__ == '__main__':
- ssh = paramiko.SSHClient()
- # important line if you've never logged into the machine before
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect('192.168.0.10', username='pi', password='raspberry')
- ssh.exec_command('touch /tmp/sshisawesome')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement