PySSH is a Python library for programmatically controlling ssh and scp.

WWW: http://pyssh.sourceforge.net/
