Hi, Use of -n option assigns input to /dev/null. This case should be handled as stdin is not a tty, otherwise "ssh -n <host>" is able to open a session, but the session stays blocked because there is nothing to be read on the input. Following patch could be applied: --- openssh-3.8p1.orig/ssh.c Wed Dec 17 06:33:11 2003 +++ openssh-3.8p1/ssh.c Thu Apr 1 09:01:02 2004 @@ -549,7 +549,7 @@ if (no_tty_flag) tty_flag = 0; /* Do not allocate a tty if stdin is not a tty. */ - if (!isatty(fileno(stdin)) && !force_tty_flag) { + if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) { if (tty_flag) logit("Pseudo-terminal will not be allocated because stdin is not a terminal."); tty_flag = 0; -- Cheers, Ignasi Roca Fujitsu-Siemens Computers
Created attachment 891 [details] Don't allocate tty when -n Please don't paste patches into bugs, they get mangled.
Patch applied, thanks.
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.