Monday, March 20, 2017

How to configure SSH on Cisco IOS

1-configure a hostname
(config)#hostname Jrter1
2-configure a domain name
(config)#ip domain-name jni.local


3-generate SSH encryption key
(config)#crypto key generate rsa

4-create a local database
(config)#username ciscouser password cisco
5-enable ssh on the lines VTY
(config)#line vty 0 4
(config-line)#transport input ssh       /* enable ssh on line VTY  */
(config-line)#login local                  /* tells the IOS to require credentials stored in the local database */

From a Cisco IOS, the following command is used to access remotely a Cisco device using SSH 
 #ssh -l ciscouser 1.1.1.1
Here, ciscouser should be a  username stored in the local database of the device we want to connect to (that is if we use a local database) and 1.1.1.1 should be the ip address of the device you want to connect to
 

No comments:

Post a Comment