SSH and Windows

Alan Kennedy alanmk at
Fri Jul 25 10:28:13 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.
> Any help is appreciated.

Perhaps you might be able to use stunnel, which is a encrypting proxy
that will secure any socket connection, does not require code changes
in client or server code, and is quite straightforward to use.


alan kennedy
check http headers here:
email alan:    

More information about the Python-list mailing list