A pure Python solution that works like expect ????
Cameron Laird
claird at starbase.neosoft.com
Thu May 16 08:13:02 EDT 2002
In article <mailman.1021544522.1189.python-list at python.org>,
Lance Ellinghaus <lellinghaus at yahoo.com> wrote:
>
>The PySSH library does not work when you must specify the password.
>Must I break down and use Perl for this? The Perl modules work
>correctly for this.. I just did not want to have to write it all in
>Perl.
>
>This is running on Solaris 2.8.
>I cannot disable the password requirement due to the hardware I am
>using SSH to connect to, so please do not suggest that.
.
.
.
Perhaps you're out of luck.
Perl is able to make lower-level interface calls than
Python. It wouldn't surprise me if Python's unable to
manage passwords as you want without a C-coded exten-
sion. I haven't done a complete analysis, though.
It doesn't make sense to me that hardware would pre-
clude you from using keys in place of passwords. In
the absence of more details, I'll trust that.
If I wanted to get something going quickly, and the
situation is as you describe, I'd use Expect.pm or
Expect, rather than Python.
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list