Issue 2762: Erratic "hash mismatch key_verify failed for server_host_key fatal: The remote end hung up unexpectedly" error: upgrade mina-sshd 0.12.0
Status:  Released
Owner: ----
Closed:  Jul 2014
Reported by bmathus, Jul 7, 2014
Affected Version:
2.8.3 installed here, but I think this is still present in last 2.8.6 since it seems to be related to mina-sshd which is still <0.12 is Gerrit 2.8.6.

What steps will reproduce the problem?
1. Fetch some data from gerrit, lots of time
One proposed way here: https://issues.apache.org/jira/browse/SSHD-330

for x in
{1..500}; do sshpass -p wrong ssh -p9922 -oKexAlgorithms=diffie-hellman-group-exchange-sha1 someuser@localhost; done 

2. See that kind of error:
stderr: Total 141633 (delta 66560), reused 141068 (delta 66560)
Total 6105 (delta 1664), reused 3822 (delta 1664)
Total 495 (delta 224), reused 405 (delta 224)
Total 61705 (delta 30913), reused 61209 (delta 30913)
hash mismatch
key_verify failed for server_host_key
fatal: The remote end hung up unexpectedly
Unable to fetch in submodule path 'socle.generation'
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1276)
...

-------

After having looked around about this issue, this seems to be related to mina-sshd:

* https://bugzilla.wikimedia.org/show_bug.cgi?id=53895
* and more precisely: https://issues.apache.org/jira/browse/SSHD-330

Thanks a lot.
Jul 8, 2014
Project Member #1 David.Os...@gmail.com
Fixed in 2.8.6.1
Status: Released
Jul 8, 2014
#2 bmathus
Cool, thanks a lot.