Force TTY

Damien Miller djm at mindrot.org
Sat Dec 17 09:23:41 EST 2005


On Fri, 16 Dec 2005, olle ollesson wrote:

> Hi Darren,
> 
> Yes, I've already figured that out but that seems rather lika a workaround 
> for a bug than an intentional design. The dokumentation says:
> 
>    -t    Forces pseudo-tty allocation. This can be used to exe-
>            cute  arbitrary  screen-based  programs  on  a  remote
>            machine, which can be very useful, for  example,  when
>            implementing menu services.
> 
> It doesn't state that you need to give this option twice in order for it to 
> have effect. So the question remains, why the if statement?

It rarely necessary to use it twice. Once will force a tty allocation
from the server (when you are using "ssh server command") and is usually 
all you need. Twice is necessary to force it on the client, e.g. when you 
are doing "ssh server command < /dev/null".

-d




More information about the openssh-unix-dev mailing list