SSH connectivity - troubleshooting

When SSH sessions into a Cisco IOS device fail, there are several ways to troubleshoot them including:

  • debug ip ssh - this command will enable the SSH debugging on the switch to which you wish to connect.
  • Client side debugging - When using Putty, enable logging by going to Logging and select SSH Packets before connecting. When using OpenSSH, run it with the -v flag.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/debug/command/i1/db-i1-cr-book/db-i3.html#wp1777274334