Bug 1531

Summary: sftp disconnect when talking to ws_ftp server 6.1.1
Product: Portable OpenSSH Reporter: Jeff White <jwhite>
Component: sftpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm, dtucker
Priority: P2    
Version: 5.1p1   
Hardware: SPARC   
OS: Solaris   
Bug Depends on:    
Bug Blocks: 1481    
Attachments:
Description Flags
Requested debug file
none
Only send no-more-sessions and eow extension messages to OpenSSH servers. none

Description Jeff White 2008-10-16 08:59:29 AEDT
Am receiving a disconnect message from sftp when conversing with ws_ftp server 6.1.1. Have downloaded and installed "newest" openssh5.1p1. No success.

Tried with OpenSSH 5.0p1 and sftp does not receive disconnect message when connecting to ws_ftp 6.1.1 server. Also, used version of OpenSSH that comes with Solaris 10 install and succeeded in connecting to ws_ftp 6.1.1 server.

Have I run into a bug? Any comments or suggestions are welcome. Thank you.
Comment 1 Darren Tucker 2008-10-16 12:33:08 AEDT
Could you please attach the debug output from the client (ie "sftp -vvv yourserver").  (Please use "Add an atachment" rather than pasting into the comment field.)
Comment 2 Jeff White 2008-10-17 00:26:52 AEDT
Created attachment 1575 [details]
Requested debug file

Thanks for your time looking at this. Have a good day.
Comment 3 Darren Tucker 2008-10-17 11:00:22 AEDT
Created attachment 1576 [details]
Only send no-more-sessions and eow extension messages to OpenSSH servers.

OK, that looks like it's choking on the no-more-sessions message.

If that's the case it means that the server is buggy (the spec says it's supposed to messages it doesn't understand with a failure message).

There has been code added to OpenBSD's OpenSSH which works around this, but the code has not yet been synced to the Portable development version.

This change is in the attached patch, please apply it to a clean openssh-5.1p1 tree and see if it resolves your problem.
Comment 4 Jeff White 2008-10-18 03:42:02 AEDT
The patches you sent me work when added to my openssh 5.1p1 tree. Thank you so much. I have no problem connecting to ws_ftp server 6.1.1 now. It appears that ssh connects as required as well. Again, thanks.
Comment 5 Damien Miller 2008-12-08 09:55:51 AEDT
Patch has been synced to portable and will be in openssh-5.2. Thanks.
Comment 6 Damien Miller 2009-02-23 13:36:32 AEDT
Close bugs fixed/reviewed for openssh-5.2 release