A Few Easy Steps: Cisco IOS, Telnet and SSH Setup

In this session of A Few Easy Steps, we will be doing the SSH and Telnet setup on a Cisco Router. In General this will work on any Cisco Switch or Router that runs on IOS.

Session Prerequisites:

  • You have a Cisco Console Cable
  • You have a serial port
  • You have a Terminal Program that you can access your Serial Port

Session Assumptions:

  • Telnet will be on VTY 0 to 4
  • domain name will be staticnat.com
  • SSH will be on VTY 5 to 10
  • SSH Key Modulus will be 1024
  • SSH Version will be 2
  • Login Credentials will be Local

Our goals of this session are:

  • Setup Domain Name
  • Setup local User Account /li>
  • Setup Telnet
  • Generate RSA Key
  • Set SSH Version
  • Setup SSH

Setup Domain Nam:

conf t
!
ip domain-name staticnat.com
!
exit
!
copy running-config startup-config
!

Setup local User Account:

!
conf t
!
username test password test
!
exit
!
copy running-config startup-config
!

Setup Telnet:

conf t
!
line vty 0 4
!
transport input telnet
!
transport output  telnet 
!
login local
!
end
!
copy running-config startup-config
!

Generate RSA Key:

!
conf t
!
cry key gen rsa gen mod 1024
!
exit
!
copy running-config startup-config
!

Set SSH Version:

!
conf t
!
ip ssh version 2
!
exit
!
copy running-config startup-config
!

Setup SSH:

conf t
!
line vty 5 10
!
transport input ssh
!
transport output  ssh
!
login local
!
end
!
copy running-config startup-config
!

Entire Session:

conf t
!
ip domain-name staticnat.com
!
username test password test
!
cry key gen rsa gen mod 1024
!
ip ssh version 2
!
line vty 0 4
!
transport input telnet
!
transport output  telnet 
!
login local
!
line vty 5 10
!
transport input ssh
!
transport output  ssh
!
login local
!
end
! 
copy running-config startup-config
!

3 comments

    • joshobrien77 says:

       Glad it ended up being helpful.  Let me know if there are other things you would like to see as part of A Few Easy Steps.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.