Skip to content

Instantly share code, notes, and snippets.

@dongyuwei
Created February 9, 2011 08:58
Show Gist options
  • Save dongyuwei/818170 to your computer and use it in GitHub Desktop.
Save dongyuwei/818170 to your computer and use it in GitHub Desktop.
ssh python with password
import paramiko
client = paramiko.SSHClient()
client.load_system_host_keys()
client.connect('10.210.74.63','username'='my name', 'password'='my passwd')
stdin, stdout, stderr = client.exec_command('ls -l')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment