Created
September 5, 2013 20:42
-
-
Save VEnis/6455879 to your computer and use it in GitHub Desktop.
Paramiko example
This file contains hidden or 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 paraminko | |
paramiko.util.log_to_file('ssh.log') # sets up logging | |
client = paramiko.SSHClient() | |
client.load_system_host_keys() | |
client.connect('127.0.0.1', username=username, password=password) | |
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
import paraminko? not paramiko