Posted: 5 Mar 2017 in CCNA
Tags: , , , , ,

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.

ssh on cisco router

We can configure ssh on cisco router by following these simple steps :



Step1. set up a hostname and and a domain name



Router#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#host satish

satish(config)#ip domain-name


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:

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 [512]: 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.

ip on pc

PC>ssh -l ccna

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.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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