Sunday, January 31, 2021

How to Configure SSH in Cisco devices || SSH kya hota hai or kaise configure karte hai || Cisco device me SSH kaise configure kare || Configuring Secure Shell Cisco || What is SSH

how-to-configure-SSH-in-Cisco-devices
how-to-configure-SSH-in-Cisco-devices
Hello and welcome to Networking Mafia, in this blogs we are going to explain what is SSH and how to configure in Cisco devices, basically SSH is like a Telnet but SSH is a very secure protocol because it shares and sends the information in encrypted form. Secure Shell is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. 
  • SSH using by default 22 port number but it can be change easily. 
  • SH is more secure so it uses public key encryption for authentication. 
  • SSH suitable for Public networks because it is very secure.
  • SSH 7 application layer protocols and uses TCP.
Let's start Configuration parts
how-to-configure-SSH-in-Cisco-devices
how-to-configure-SSH-in-Cisco-devices
First do basic configuration on your Router according to your Network.
how-to-configure-SSH-in-Cisco-devices
how-to-configure-SSH-in-Cisco-devices
1 Steps
  1. Router>en
  2. Router#configure t
  3. Router(config)#interface gigabitEthernet 0/0
  4. Router(config-if)#ip address 10.0.0.1 255.0.0.0
  5. Router(config-if)#no shutdown
2 Steps
  • We have successfully configure basic configuration now we have to configure Hostname or Domain Name in same Router.
  1. Router(config)#Hostname R1 
  2. R1(config)#ip domain-name www.networkingmafiablogspot.com
Note:-Hostname is your Router Name and domain Name you can give anything as per your requirement.

3 Steps
  • Now we have to configure vty connection in the same Router or SSH command.
  1. R1(config)#Line vty ?
  2.  <0-15>  First Line number
  3. R1(config)#Line vty 0 4
  4. R1(config-line)#login local
  5. R1(config-line)#transport input ssh 
  6. R1(config-line)#exit
Note:-Total vty connection available on this router 16, vty means how many devices can access this particully router at a single time on remotely, you can allow all 16 connection it is depend on your requirement.

  • Now we have successfully enable ssh in this router.
4 Steps
  • The next steps is we have generate RSA key which is use for encryption purpose.
  1. R1(config)#crypto key generate rsa 
how-to-configure-SSH-in-Cisco-devices
how-to-configure-SSH-in-Cisco-devices
Note:- After generating RSA it will ask bits modulus which means you can assign 360 to 2048 it's just a security purpose

  • Now we have successfully configured SSH on this Router.

5 Steps
  • Last and final steps create username and password which will be use for login purpose.
  1. R1(config)#username Mafia password 123456
Note:- You can create multiple user as per your requirement.

6 Steps
  • Now go on your Host and configure IP or Gateway and check whether this Host are able access  this router via SSH connection or not.
how-to-configure-SSH-in-Cisco-devices
how-to-configure-SSH-in-Cisco-devices
7 Steps
  • Now final open the host Command prompt and type ssh -l Mafia 10.0.0.1
how-to-configure-SSH-in-Cisco-devices
how-to-configure-SSH-in-Cisco-devices
Now you can watch we are able to access router via host.
Do the same configure on PC.

And that's for all!

Also watch my others blogs click on the given list.
how-to-configure-SSH-in-Cisco-devices
So, if you have been following my blogs and share with your friends, I am really thankful for you.

comment bellow what you think or if you have any suggestions for me.
Hope you liked it.
Have an awesome day!
how-to-configure-SSH-in-Cisco-devices


1 comment: