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


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001