Configure SSH on Cisco router

This short tutorial will show you, how to configure the ssh on Cisco router!

First make sure that at least your router has hostname, to assign the hostname, use this command:

hostname tendoRouter

where tendoRouter, is my router name, you can assign whatever you like!

To check that ssh is enabled or not, use this command:

show ip ssh

SSH is disabled on this router!

Next, we need to configure the domain name on our router:

ip domain-name homelab.lan

where homelab.lan is my domain name, you can use according to your requirement/environment!

Now,generate a 2048 bit RSA key (it will take sometime, depend on the processing power of the router):

crypto key generate rsa general-keys modulus 2048 

Now, configure the router to accept the ssh logins:

line vty 0 4
login local
transport input ssh

Next step is to create an account on local router’s database in order to use it for authenticating to the device:

username arbab privilege 15 secret cisco

where “arbab” is a username and “cisco” is a password, you need to change it according to your need’s!

Verify that ssh is enabled now?

show ip ssh

Yes, it is enabled🙂

Connect to router with ssh using PuTTY!

Enter the ip address of your router:

Accept the Security Certificate!

Enter the username and password:

Hurry, we are login to the router with ssh🙂

Hope this will help you!

Please Remember me in your prayers!

Leave a Reply

Fill in your details below or click an icon to log in: 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: