cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2935
Views
0
Helpful
1
Replies

what causes %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection

cro2laser
Level 1
Level 1

We just had a problem after a Cisco device recap. The device was on the outside of our network. We could SSH into a device from the outside (i.e. LPZ) but not from the internal network (i.e. MPZ). The SSH traffic goes through a firewall. The outside Cisco device was receiving the SSH request and was logging this message: %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection

 

I am posting this because the solution was to remove the outside device from the known-hosts file on the firewall (a manual process) and then add the device back to the firewall known-hosts file (a manual process). Basically the firewall was using an old SSH hash and the Cisco device wasn't accepting it.

1 Reply 1

Philip D'Ath
VIP Alumni
VIP Alumni

I'm going to guess someone re-generated the SSH key on the router (causing it to fail because of the change).  Perhaps they updated the key to something strong.