Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

SSH · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam · Supporting reference, not an additional exam objective

Quick explanation

SSH provides encrypted remote CLI access. Cisco SSH requires a device identity, RSA keys and an authentication method.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Configure reachable interface or management SVI and gateway if needed.
  • Use a local user and test before closing console access.
SSH version 2 with local authentication Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Key generation may prompt or reject replacement if a key already exists. Do not overwrite an existing working key unnecessarily.
enable
configure terminal
hostname [HOSTNAME]
ip domain-name [DOMAIN-NAME]
username [USERNAME] privilege 15 secret [PASSWORD]
crypto key generate rsa modulus 2048
ip ssh version 2
line vty 0 [VTY-LAST]
 login local
 transport input ssh
 exit
end
Command parameters
[HOSTNAME]
Local Cisco device hostname.
[DOMAIN-NAME]
Device domain name.
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
Optional SSH and VTY timeouts Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip ssh time-out [SSH-TIMEOUT-SECONDS]
ip ssh authentication-retries [RETRY-COUNT]
line vty 0 [VTY-LAST]
 exec-timeout [IDLE-MINUTES] [IDLE-SECONDS]
 exit
end
Command parameters
[SSH-TIMEOUT-SECONDS]
SSH negotiation/authentication timeout in seconds.
[RETRY-COUNT]
SSH authentication retry count.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
[IDLE-MINUTES]
VTY idle timeout minutes.
[IDLE-SECONDS]
Additional VTY idle timeout seconds.

Show / Verify

Primary verification Section link
show ip ssh
Example output
SSH Enabled - version 2.0

Confirm SSHv2 is enabled.

Detailed verification Section link
show ssh
Example output
Connection  Version  Mode  Encryption
0           2.0      IN    aes256-ctr

An active test session proves negotiation; check login and privilege separately.

Detailed verification Section link
show running-config | section ^line vty
Example output
line vty 0 4
 login local
 transport input ssh

Verify correct VTY range and transport.

Connectivity verification

IPv4 reachability

Check success rate; use source or VRF context if required.

ping [DESTINATION-IP]
Remote SSH login

Run from a separate test Cisco device or use a client PC; confirm authentication and privilege without closing the existing recovery session.

ssh -l [USERNAME] [DESTINATION-IP]

Common mistakes

  • RSA keys missing.
  • Wrong management IP/default gateway.
  • VTY transport does not allow SSH.
  • Local user missing.

Configuration comparison

SSH vs Telnet — SSH encrypts CLI transport; Telnet does not. Both are included where required by the exam.

Remove configuration — separate, potentially disruptive actions

Disable remote transport

Prevents new remote VTY sessions; use console or alternate access first.

enable
configure terminal
line vty 0 [VTY-LAST]
 transport input none
 exit
end

Related reference

Networking technical reference · Interface types · Connectivity verification

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?