Created
February 9, 2011 08:58
-
-
Save dongyuwei/818170 to your computer and use it in GitHub Desktop.
ssh python with password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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