[Baypiggies] Finding a reliable Python SSH client

Nigel Stolting nigel.stolting at gmail.com
Wed Dec 9 01:46:44 CET 2009


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

Thanks in advance

Nigel Stolting

More information about the Baypiggies mailing list