Bug 1939

Summary: ssh client hangs when -t option is used to force pseudo-tty allocation
Product: Portable OpenSSH Reporter: mathews.dennis
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WORKSFORME    
Severity: normal CC: dtucker
Priority: P2    
Version: 5.4p1   
Hardware: PPC   
OS: AIX   
Attachments:
Description Flags
ssh client verbose session none

Description mathews.dennis 2011-09-20 11:17:02 AEST
Created attachment 2091 [details]
ssh client verbose session

ssh hangs when -t option is used to force pseudo-tty allocation to execute a command remotely. It hangs just after 'debug1: channel 0: open confirm rwindow 0 rmax 32768'. This has been reproduced using multiple accounts on multiple client OS ( Solaris/AIX/Linux with varying client versions ) to rule out problem with client. Not all servers with the same version of OpenSSH are affected though, but the configurations are the same across working and non-working servers. Nothing more is logged on the server other than a successful authentication/login.
Comment 1 Darren Tucker 2011-09-20 14:10:25 AEST
I believe this was fixed in 5.6 (see bug #1698).  From the release notes (http://www.openssh.com/txt/release-5.6): 

 * Kill channel when pty allocation requests fail. Fixed stuck client
   if the server refuses pty allocation (bz#1698)

Can you reproduce the problem with a current version?
Comment 2 Darren Tucker 2011-11-04 10:23:20 AEDT
I'm prettty sure this is already fixed.  Please reopen if you can reproduce with a current version.
Comment 3 Darren Tucker 2011-11-04 10:59:10 AEDT
(mail notifications were briefly broken, repeating comment):

I'm prettty sure this is already fixed.  Please reopen if you can
reproduce with a current version.
Comment 4 Damien Miller 2021-04-23 14:58:50 AEST
closing resolved bugs as of 8.6p1 release