Re: SSH pipe probelm
From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 11/27/04
- Previous message: Chris Nystrom: "Re: SSH pipe probelm"
- In reply to: Chris Nystrom: "Re: SSH pipe probelm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 27 Nov 2004 12:04:55 +0000 (UTC)
In article <ac602fd2.0411270112.194d7eb3@posting.google.com>,
Chris Nystrom <cnystrom@gmail.com> wrote:
>Thanks. I meant "How does the expect program do it?", not "How do I
>get the epxect program to do it?". Apparently instead of opening the
>ssh program using a pipe, I need to open it using a pseudo-terminal.
>Then I should be able send the password to the ssh process.
Instead of allocating a pty, use the SSH_ASKPASS mechanism (see the
ssh(1) man page.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Previous message: Chris Nystrom: "Re: SSH pipe probelm"
- In reply to: Chris Nystrom: "Re: SSH pipe probelm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]