Bug 1531 - sftp disconnect when talking to ws_ftp server 6.1.1
Summary: sftp disconnect when talking to ws_ftp server 6.1.1
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: 5.1p1
Hardware: SPARC Solaris
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_5_2
  Show dependency treegraph
 
Reported: 2008-10-16 08:59 AEDT by Jeff White
Modified: 2009-02-23 13:36 AEDT (History)
2 users (show)

See Also:


Attachments
Requested debug file (5.09 KB, text/plain)
2008-10-17 00:26 AEDT, Jeff White
no flags Details
Only send no-more-sessions and eow extension messages to OpenSSH servers. (4.52 KB, patch)
2008-10-17 11:00 AEDT, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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