Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configure SSH on Cisco IOS

This should also work for IOS-XE.

aaa new-model is necessary for the login default line under the vty.

Config

aaa new-model
!
username ariadne secret passwordgoeshere
!
ip domain-name <domain-here>
!
crypto key generate rsa modulus 4096
!
ip ssh version 2
!
line vty 0 15
  transport input ssh
  login authentication default

Verification

R2# ssh -l ariadne 10.0.0.1

[banner message]

Password: 

[banner message]

R1>
Last Modified • Wednesday, July 1, 2026. 11:51 pm UTC+00:00 • Commit: 37da309