show ip ssh
Shows whether the SSH server is enabled, its version, and the authentication timeout and retry limits.
Written by a working field network engineer · CCNA, Security+, CySA+
Confirms the SSH server is running and which version it accepts. SSH only starts once the device has a hostname, a domain name and an RSA key, so “SSH Disabled” here usually means one of those is missing.
Example output
R1#show ip ssh
SSH Enabled - version 2.0
Authentication timeout: 120 secs; Authentication retries: 3Captured from the BuildTheNet simulator’s CLI engine, the one the free Sandbox runs.
Useful variants
show ip ssh | include version
What each column or field means
| Field | Meaning |
|---|---|
SSH Enabled / Disabled | Enabled once an RSA key pair exists. Disabled means no key has been generated. |
version 2.0 / 1.99 | 2.0 accepts only SSHv2 (set with ip ssh version 2). 1.99 means both v1 and v2 are accepted, which you should not leave in place. |
Authentication timeout | Seconds allowed to complete login (ip ssh time-out). |
Authentication retries | Failed attempts before the session is dropped (ip ssh authentication-retries). |
When it doesn’t look right
SSH Disabled.
Set a hostname and ip domain-name, then crypto key generate rsa modulus 2048. Version 2 needs a key of at least 768 bits.
SSH is enabled but the login is refused.
Check the VTY lines: transport input ssh, login local, and a username with a secret configured.
Connection refused from some management hosts only.
An access-class on the VTY lines is filtering them. Check show running-config | section line vty.
Related commands
Try it yourself
- Secure Device Access (SSH) (Pro)
- Full SSH Access Hardening (Pro)
- Domain Name and RSA Key Generation (Pro)
- VTY Line Transport Restriction (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Secure Shell (SSH) Configuration (5. Security Fundamentals)
- Enable SSH with a domain name and RSA keys (5. Security Fundamentals)
- Create local users and enforce VTY login (5. Security Fundamentals)
- Assessment: Reach It Over SSH (5. Security Fundamentals)
Topic
SSH and Device Hardening — Replace Telnet with SSH: domain name, RSA keys, local users, VTY transport and login rules, and how to verify each one.