Skip to content

Instantly share code, notes, and snippets.

@VEnis
Created September 5, 2013 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VEnis/6455879 to your computer and use it in GitHub Desktop.
Save VEnis/6455879 to your computer and use it in GitHub Desktop.
Paramiko example
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')
@xeniter
Copy link

xeniter commented Jan 20, 2023

import paraminko? not paramiko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment