Force TTY

Kevin Steves stevesk at pobox.com
Sat Dec 17 09:30:12 EST 2005


On Fri, Dec 16, 2005 at 03:31:33PM +0100, olle ollesson wrote:
: 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?

ssh.1 has stated the following for close to 5 years:

     -t      Force pseudo-tty allocation.  This can be used to execute arbi-
             trary screen-based programs on a remote machine, which can be
             very useful, e.g., when implementing menu services.  Multiple -t
             options force tty allocation, even if ssh has no local tty.




More information about the openssh-unix-dev mailing list