Study FAQ
How do you diagnose an SSH connection failure to a Cisco IOS XE device?
Also asked as 2
- How can I tell whether a Cisco SSH failure comes from the network path, the SSH service, or login?
- What should I check when I can ping a Cisco switch but cannot open an SSH session?
Answer
Test SSH from the intended management client to the device's management address. SSH provides encrypted remote CLI access, and a successful ping only proves that the tested ICMP exchange worked. To locate the failure, distinguish TCP reachability, SSH negotiation, and authentication.
- If the SSH connection times out or is refused, check reachability to the management address, the return path, and policy for the SSH port, normally TCP 22. On Cisco IOS XE 17.15.x for Catalyst 9300, use
show ip sshfrom a working management session or console to check that the server is enabled. - If TCP connects but negotiation fails, compare the client error with the server's supported SSH settings, key availability, and the remote line's SSH access policy. These settings can vary by release and image.
- If the server reaches authentication and rejects it, investigate the configured login policy and device-side result. Confirm restoration by opening an authorized SSH session from the original management client.
Use the observed connection stage to decide which dependency to test next.
References
Full explanation
CCNA IP Services: NAT, DHCP, DNS, NTP, SNMP, Syslog, QoS, and SSH
Study guide · 200-301
Read the full explanation