Skip to content

Instantly share code, notes, and snippets.

Avatar

Hung Huy Phan HungPhann

  • Hanoi University of Science and Technology
  • Hanoi, Vietnam
View GitHub Profile
@bortzmeyer
bortzmeyer / gist:1284249
Created Oct 13, 2011
The only simple way to do SSH in Python today is to use subprocess + OpenSSH...
View gist:1284249
#!/usr/bin/python
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys