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.