SSH Error: Disconnecting: Corrupted HMAC on input

lasergecko

Senior member
Jul 17, 2001
521
0
0
When I try to use ssh, I get the error message "Disconnecting: Corrupted HMAC on input." (Using Red Hat Linux 7.0)
Any ideas on how to fix this?
Thanks.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
2.3 - Why does SSH 2.3 have problems interoperating with OpenSSH 2.1.1?
SSH 2.3 and earlier versions contain a flaw in their HMAC implementation. Their code was not supplying the full data block output from the digest, and instead always provided 128 bits. For longer digests, this caused SSH 2.3 to not interoperate with OpenSSH.

OpenSSH 2.2.0 detects that SSH 2.3 has this flaw. Recent versions of SSH will have this bug fixed. Or you can add the following to SSH 2.3 sshd2_config.

Mac hmac-md5


What ssh are you using? OpenSSH? (ssh -V to find out), and what type of ssh is the server running (if you can get into it, ssh -V will work there too)? Or are you using putty or something? Also, what type of encryption and authentication?
 

lasergecko

Senior member
Jul 17, 2001
521
0
0
I am using SSH Version OpenSSH-2.1.1, protocol versions 1.5/2.0.
Complied with SSL (0x0090581f).
One server, I am trying to connect to says: ssh: SSH Secure Shell 2.3.0 (non-commercial version) on sparc-sun-solaris2.5.1

I am using redhat 7.0, if I just update the package should it fix the problem?

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< I am using SSH Version OpenSSH-2.1.1, protocol versions 1.5/2.0.
Complied with SSL (0x0090581f).
One server, I am trying to connect to says: ssh: SSH Secure Shell 2.3.0 (non-commercial version) on sparc-sun-solaris2.5.1

I am using redhat 7.0, if I just update the package should it fix the problem?
>>



I would definitely get the latest from openssh.com. But it looks like the item out of the FAQ I posted is exactly what was wrong. :)