ssh and popen-- broken pipe

Damien Miller djm at mindrot.org
Sat Sep 21 19:07:07 EST 2002


On Fri, 2002-09-20 at 03:21, Lingyun Pan wrote:
> Hi,
> 
> My application uses popen to execute UNIX commands.   After I replace rsh
> with ssh,  it stopped working.  I have made a test C code to reproduce the
> problem as attached in this email.  In the test program, I called popen for
> ssh command and then pclose right away.  I got  the following error:

Try "ssh -v blah 2>&1" as your command so you get debugging output over
the pipe. Alternately have a look as how sftp.c executes ssh for a way
which preserves console access (for reading passphrases, etc) and
debugging output.

-d




More information about the openssh-unix-dev mailing list