ssh popen stalling on password redirect output?

Cameron Laird claird at lairds.us
Sun Jul 17 10:08:02 EDT 2005


In article <dbb0qi$c73$1 at news.freedom2surf.net>,
Cantankerous Old Git  <CantankerousOldGit at gmail.com> wrote:
>draghuram at gmail.com wrote:
>> In general, it is good idea to use expect kind of tool to deal with
>> interactive programs like ssh. You may try using pexpect
>> (http://pexpect.sourceforge.net).
>> 
>
>I tried tha once (on Solaris) and found that ssh could tell that 
>pexpect wasn't a real tty and refused to connect. In the end, I 
>had pexpect  do a telnet 127.0.0.1, log in, then so ssh to the 
>real destination. Pain in the ass but it worked.
>
>The Cog

1.  Pexpect is designed to do better than this.  Please
    report specific deficiencies in its operation.
2.  (The original) Expect has had years of working out
    pty vagaries.  In a pinch, I'd write in Expect, and,
    if necessary, control the Expect process from Python.



More information about the Python-list mailing list