openssh-unix-dev October 2011 archive
Main Archive Page > Month Archives  > openssh-unix-dev archives
openssh-unix-dev: problem with a tty

problem with a tty

From: £ukasz Bieńczyk <lukasz.bienczyk_at_nospam>
Date: Mon Oct 24 2011 - 08:11:18 GMT

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?

openssh-unix-dev mailing list