SSH client, dup, pty.

Damien Miller djm at mindrot.org
Wed May 1 10:31:50 EST 2002


On Tue, 30 Apr 2002, Allan McIntosh wrote:

> 
> 
> >You probably haven't set the controlling terminal, have a look at 
> >Stevens _Advanced Programming in the Unix Environment_ or 
> 
> I have done so. I created the pty how ever, I am trying to control the ssh
> session from the parent. IE write the password through the pty, execute
> commands and log out. Essentially, I want don't want to interact with the
> ssh session via the key board.

dupping stdio to the pty may not be enough. Are you doing a TIOCSCTTY
or similar?

-d





More information about the openssh-unix-dev mailing list