[Bug 2750] Unexpected "Couldn't read packet: Connection reset by peer" message

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Jul 31 11:40:37 AEST 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2750

--- Comment #3 from Darren Tucker <dtucker at zip.com.au> ---
(In reply to jg from comment #2)
> Hello Darren
> 
> It was an Android app "SSH Server". Perhaps you're right and it
> crashed. Was just a bit surprised to see the connection reset
> message.

You can get more info out of the client by adding -oLogLevel=debug3 to
both ssh and sftp command lines and comparing them.  If you do, please
use "Add an attachment" to attach both logs to this bug so we can take
a look.

sftp invokes ssh and must consume its output, once that pipe is full
ssh will block until sftp does.  I suspect the different is due to a
race: without that blocking ssh initiates the close first, and with the
blocking the server crashes/exits before ssh gets around to closing the
connection.  If that's the case there's not much OpenSSH can do.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list