cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14512
Views
0
Helpful
9
Replies

SSH: Unexpected Message Type

rtjensen4
Level 4
Level 4

Hi All,

My 4507R with SupIV and IOS 12.2(31)SGA10 recently started to recieve this log message quite frequently. Any ideas as to why? It's not causing any problems, just an annoyance. Thanks.

003996: Sep 23 13:04:51.676: SSH2 1: Unexpected mesg type received

003997: Sep 23 13:34:51.524: SSH2 0: Unexpected mesg type received

003998: Sep 23 14:04:50.935: SSH2 0: Unexpected mesg type received

003999: Sep 23 14:34:50.384: SSH2 0: Unexpected mesg type received

004000: Sep 23 15:04:51.792: SSH2 0: Unexpected mesg type received

004001: Sep 23 15:34:50.921: SSH2 0: Unexpected mesg type received

9 Replies 9

Lucien Avramov
Level 10
Level 10

This is usually a communication interaction problem between the ssh client ( incorrect rsa key for ssh server ) and the ssh server. If you delete your keys on the ssh client for the ssh server, do you still see these messages when connecting from this client to the server?

I wonder if maybe its an issue with CiscoWorks (LMS 3.2). It seems to be generating this error every 30 minutes on the nose. I can SSH to the switch without problems from my PC. Hmmmm.... I'll have to take a close look at CW I think.

Can you post your show ip ssh output as well as debug ip ssh?

I am not able to access switch after regenerating RSA key. This is our Core switch. Please help me.

Jerry Ye
Cisco Employee
Cisco Employee

These error messages indicate that during an SSH session to the switch, a packet was

received which was not understood.

HTH,

jerry

yjdabear
VIP Alumni
VIP Alumni

There's note on this page:

http://www.cisco.com/en/US/tech/tk583/tk617/technologies_tech_note09186a00800949e2.shtml

"Note: You can receive the SSH2 0: Unexpected mesg type received error message due to a packet received that is not understandable by the router. Increase the key length while you generate rsa keys for ssh in order to resolve this issue. "

Thanks. I just regenerated the RSA keys at 2048 bit instead of the 1024 I had before. I'll keep an eye on it and see if anything changes.

Hi Sir, May I know the result after you change your RSA Keys at 2048?

thomaslueder
Level 1
Level 1

What Message you got?

Maybe you have to delete the old ssh key on your Client?

ssh keys got stored locally. If the ssh Key from a known Host changed you normaly got an error massage (posssibity of a man in the middle)

Sent from Cisco Technical Support iPhone App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card