SSH and Windows

Peter Hansen peter at engcorp.com
Fri Jul 25 01:20:29 CEST 2003


Isaac Raway wrote:
> 
> Hello. I'm writing a Python program that connects to servers through
> telnetlib to execute a few commands. I've discovered that some of the
> servers that I have to connect to with this program run only SSH, so I
> need to add support for SSH to the program. I'm looking for a library
> that behaves similarly to telnetlib for SSH connections. Does anyone
> know of one? I was going to try using pexpect to control the Windows
> telnet command, but pexpect only works on Unix.

If it's just to execute a few commands, consider downloading PLink
(from the PuTTY site) and use it via os.system().  It works well.

-Peter




More information about the Python-list mailing list