In this ccna lab we will learn ssh configuration on cisco routers.I use step by step method to made this configuration easy and clear.
To enable secure access to your Cisco device, you can use SSH instead of Telnet which is less secure than SSH.
SSH uses encryption to secure data from eavesdropping while telnet use clear text username and password which can be hacked or sniffed by hackers easily. So i recommend you to use SSH instead of TELNET. Although you can use telnet where security is not a great concern.
We can configure ssh on cisco router by following these simple steps :
Step1. set up a hostname and and a domain name
Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host satish satish(config)#ip domain-name linuxtiwary.com
Step2. configure local username and password
satish(config)#username ccna password linux123
Step3. generate RSA public and private keys
satish(config)#crypto key generate rsa The name for the keys will be: satish.linuxtiwary.com Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus : 1024 % Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
Step4. Allow only SSH access
satish(config)#line vty 0 10 *Mar 1 0:4:43.632: %SSH-5-ENABLED: SSH 1.99 has been enabled satish(config-line)#login local satish(config-line)#transport input ssh
Step5. apply enable password
satish(config)#enable password ccna123
Step6:Now go to pc assign ip address and login on router using SSH.
PC>ssh -l ccna 188.8.131.52 Open Password: satish>
hence our ssh is successfully configured on cisco router.
if you have any problem regarding ssh configuration you can ping me through comment section.I will love to reply your questions and doubts if you have any.I also welcome nice and positive suggestions here.