Remote access to ssh server

Erik Max Francis max at alcyone.com
Wed Jan 8 08:01:02 EST 2003


Yar3k wrote:

> Is there any possibility for Python script to remote connection with
> ssh server? I want to connect to remote server, execute some commands
> and logout. All should be done automaticly (like using ftp client
> which is the part of standard Python library).

There's a PySSH project; check Google.  Or you could always just drive a
ssh session with os.system, os.popen, or one of the popen2 variants.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ The great floodgates of the wonder-world swung open.
\__/ Herman Melville
    Polly Wanna Cracka? / http://www.pollywannacracka.com/
 The Internet resource for interracial relationships.




More information about the Python-list mailing list