fir3net

Cisco Router - How to configure SSH

Below shows you how to enable SSH on your router using a username of "mr" and a password of "bean", allowing access from the fa0/0 interface.

Router(config)#ip ssh source-interface fastEthernet 0/0
Router(config)#ip ssh authentication-retries 3
Router(config)#ip ssh version 2

Router(config)#ip domain-name local.net
Router(config)#crypto key generate rsa modulus 768
Router(config)#username mr password 7 bean

Router(config)#line vty 0 15
Router(config-line)# transport input ssh
Router(config-line)# local login

About the Author

RDonato

R Donato

Ricky Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Ricky on Twitter @f3lix001