Openssh will sometimes fail when port forwarding from server back to client. See openssh bugzilla https://bugzilla.mindrot.org/show_bug.cgi?id=1360 There's a patch attached to the issue that has been committed for openssh 4.8. Any chance we could get this into the ebuild? Reproducible: Always Steps to Reproduce: I can get this by forwarding and then scp'ing a large file back over a forwarded connection. The original ssh connection is severed with the server reporting "Disconnecting: Bad packet XXXXX". I'm not sure if this depends on network packet size, etc. It's possible this is related to PR 191371. I'm not sure. The failure messages I get ("Disconnecting: Bad packet" on the server side) seem different. http://bugs.gentoo.org/show_bug.cgi?id=191371
verify it actually works for you and i'll look at adding it
added the fix committed upstream to openssh-4.7_p1-r5