BuildTheNet

Opening your workspace

Your learning content and tools are loading.

SSH and Device Hardening

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: 3

Captured from the BuildTheNet simulator’s CLI engine, the one the free Sandbox runs.

Useful variants

What each column or field means

FieldMeaning
SSH Enabled / DisabledEnabled once an RSA key pair exists. Disabled means no key has been generated.
version 2.0 / 1.992.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 timeoutSeconds allowed to complete login (ip ssh time-out).
Authentication retriesFailed 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

Learn it in the CCNA path

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.

All 57 commands