[Tutor] SSH with Python
eric at ericwalstad.com
Thu Feb 28 00:36:51 CET 2008
Eric Brunson wrote:
> Eric Walstad wrote:
>> Eric Brunson wrote:
>> import pexpect
> What's the path to ssh under windows vista?
I hope I never have to find out :)
> Paramiko is a pure python
> implementation of the SSH protocol, so it should run on any platform.
Cool! I'd like to give Paramiko a try some day when I don't need to be
concerned with prompts from the remote command I am running. Yes,
Paramiko looks interesting.
> Besides, IMHO, expect, pexpect, Perl::Expect... the entire concept is a
> horrible, horrible kludge and should only be used as a last resort when
> no other interface is possible.
I mostly agree, except when other priorities win, when time is of the
essence, when I don't have root or when I'm just feeling nervous about
hobgoblins. Yeah, it's ugly but it works for me and my needs and has
been surprisingly stable over the years. That said, I admit that the OP
might be better served by Paramiko, assuming it does what they need.
More information about the Tutor