[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh error: Pseudo-terminal will not be allocated because stdin is not a terminal



 
    
ssh error: Pseudo-terminal will not be allocated because stdin is not a terminal
--------------------------------------------------------------------------------

[terrence@raider ~]$ xterm -fn 9x15 -bg black -fg gray -geometry 80x60 -e ssh -p 222 ssh-tunnel ssh baghdadic

in the new xterm window, no prompt, but these:

Pseudo-terminal will not be allocated because stdin is not a terminal.
Warning: no access to tty (Bad file number).
Thus no job control in this shell.
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001


in ssh manual:

     -T      Disable pseudo-tty allocation.

     -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.

Try with "-t" parameter:

[terrence@raider ~]$ xterm -fn 9x15 -bg black -fg gray -geometry 80x60 -e ssh -p 222 -t ssh-tunnel ssh baghdadic

in the new xterm window:

Last login: Mon Oct 24 18:04:00 2005 from flabby.its.unim
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001
[terrence@baghdadic terrence]$ 



Google