problem with a tty

Ángel González keisial at gmail.com
Tue Oct 25 03:18:57 EST 2011


Łukasz Bieńczyk wrote:
> hello everyone
>
> I'm writing an application which execute ssh, I communicate with
> a ssh process by stdin/stdout. Everything works fine, but lately I've noticed
> that I need TTY(for changing a password), so I use "-tt" option to force tty
> allocation, and now on stdout I get messages with all commands which I write.
> I mean:
> write(stdin): ls
> read(stdout): ls
> read(stdout): "ls result"
>
> Is there a way to avoid that?
>
> Regards,
> lukasz
Seems that you made your shell interactive.
I don't see a parameter to make a shell connected to ttys
non-interactive, but
perhaps running 'stty -echo' is enough for your issue.



More information about the openssh-unix-dev mailing list