[Baypiggies] Finding a reliable Python SSH client

Simeon Franklin simeonf at gmail.com
Wed Dec 9 01:57:18 CET 2009

If you're just looking for some decent examples -  Fabric
(http://docs.fabfile.org/0.9.0/) uses Paramiko to run commands on
remote hosts and the code is pretty reasonable...

Simeon Franklin

On Tue, Dec 8, 2009 at 4:46 PM, Nigel Stolting <nigel.stolting at gmail.com> wrote:
> Hi
> I’m looking to see if anyone has had any experience (and success) with
> using a Python based SSH client.
> The project  I’m working requires various commands to be sent to a
> remote server (running Linux) to get various state, including ‘df –a’,
> ‘ps –a’ and ‘top’.
> I’m trying to stay away from pexpect, as I’ve been stung in the past
> dealing with various timing issues. In addition, it’s not possible to
> run ssh via sub.process as I’m not permitted to run ssh in a
> non-interactive mode i.e. I need to supply a password to log in to the
> remote server.
> I’ve looked at Paramiko (verion 1.7.6), but so far I’m struggling to
> get this to work successfully. The login works correctly but when the
> command is sent an exception is thrown. I will be emailing the
> relevant forums to see if there is a newer version available. But in
> the meantime I thought I would enquire to see what everyone else is
> using.
> Thanks in advance
> Nigel Stolting
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies

More information about the Baypiggies mailing list