05-27-2019 12:15 AM
Hello All,
Am getting below log in my internet switch where 2 ISP are connected.
model:C3560CX
Version 15.2(4r)E3
Error--%SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection from 113.16.213.217
Solved! Go to Solution.
05-27-2019 12:23 AM - edited 05-27-2019 12:24 AM
Hi
are you based in China ? that's where that connection came from , tried to access your device but got blocked
war version of SSH are you running make sure its V2 and teh keys are like 2048 or 1024 minimum , make sure theres a an ACL on your VTY port
login block will help too for repeated attempts automatic
login block-for 300 attempts 10 within 60
login quiet-mode access-class (ACL VTY NO)
05-27-2019 12:23 AM - edited 05-27-2019 12:24 AM
Hi
are you based in China ? that's where that connection came from , tried to access your device but got blocked
war version of SSH are you running make sure its V2 and teh keys are like 2048 or 1024 minimum , make sure theres a an ACL on your VTY port
login block will help too for repeated attempts automatic
login block-for 300 attempts 10 within 60
login quiet-mode access-class (ACL VTY NO)
05-27-2019 01:34 AM
Hello Mark,
How can i apply ACL ,here will it be inbound or outbound.
this is our internal segment--172.X.X.X
05-27-2019 02:08 AM - edited 05-27-2019 02:09 AM
Hi
It would be inbound like below example , then permit and deny whats required
Example
access-list 186 permit tcp host 172.19.194.2 any eq 22
access-list 186 deny ip any any log
line vty 0
access-class 186 in
exec-timeout 30 0
no activation-character
transport input ssh
05-27-2019 12:48 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide