cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
647
Views
0
Helpful
4
Replies

Router Log filled with Terminating the connection

linuxwiz54
Level 1
Level 1

Router log is filled with below message, how do I stop this from happening.

.Jan 14 14:48:34.305: %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection
.Jan 14 16:41:19.993: %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection
.Jan 14 17:17:15.256: %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection

James

4 Replies 4

saif musa
Level 4
Level 4

Hi,

Most of ssh clients now days establish ssh version 2 connection. Thus, try setting ssh version to version 2. maybe that's why the connections are terminated. 

Hope that could help

Regards

Thank you for suggestion and tip, after a lot of research, I created an access list and applied to line vty now I no longer get terminated connection in my log.

Hello

You can suprress the msgs via a logging discriminator and apply it to your console-  buffer etc. 

http://www.cisco.com/c/en/us/td/docs/ios/12_4t/12_4t11/htnmsylg.html#wp1056364

res

paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hello,

you might want to check the cryto key pair required for SSH2, or re-enter it, e.g.:

Router(config)# ip ssh rsa keypair-name Router.domain.com

'Router.domain.com' obviously have to match what is configured on your own device.