How to Configure SSH on Cisco Router in GNS3? – When you configure Cisco Routers for the first time, you connect to the router through a console connection. After you do the basic configuration of the Cisco Router through the console, you can configure Telnet or SSH to manage remote access. At this point, you can connect to the Cisco Router over a LAN or WAN and remotely manage it.
How to Configure SSH on Cisco Router in GNS3?
Configuring Cisco Routers over the LAN or WAN with Telnet is not recommended for security reasons. It is recommended that you configure SSH connection on the Cisco Router instead of Telnet. Since SSH provides a secure connection, it encrypts your data and allows you to safely manage your network.
In the previous article, we discussed how to configure Telnet in GNS3. In this article, we will configure SSH on Cisco Router using the GNS3 network simulator program.
How to Enable SSH on Cisco Router Step by Step using GNS3?
Click the Start / Resume all nodes button to launch the Cisco Router.
After running the Cisco Router, open the CLI command prompt to configure SSH and execute the following commands, respectively.
R1# conf t
R1(config)# interface fastethernet0/0
R1(config-if)# ip address 192.168.8.1 255.255.255.0
R1(config-if)# no shutdown
R1(config)#ip domain-name sysnettechsolutions.com
R1(config)#crypto key generate rsa general-keys modulus 1024
The name for the keys will be: R1.sysnettechsolutions.com
% The key modulus size is 1024 bits
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
R1(config)# ip ssh time-out 15
R1(config)# ip ssh authentication-retries 2
R1(config)# ip ssh version 2
R1(config)# username cisco privilege 15 password cisco123
R1(config)# line vty 0 4
R1(config-line)# login local
R1(config-line)# privilege level 15
R1(config-line)# transport input ssh
Open the Putty program on the VMware virtual machine and click the Open button after typing the IP address of FastEthernet0/0 interface of Cisco Router and port number in the IP address field.
Click on the Yes button in the Putty security warning window.
The Cisco Router SSH connection was successfully installed. In the Login as section, type the username you created and press the Enter key.
In the Password field, type the password for the username you created (cisco123) and press Enter.
After you provide the SSH connection to Cisco Router, you can then manage the Router over the LAN or WAN.
To view SSH sessions on Cisco Router, type show line in Privileged Modeand press Enter. You can control Telnet or SSH connections to Cisco Router from the following image.
To control the SSH version, use the show ssh command in privileged configuration mode. You can see the version of SSH at the output of the show command in the image below.
You can use the command [ssh -l (User Name) (Router IP Address)] to set up the SSH connection to Cisco Router over the PC or the Cisco Router.
To make an SSH connection over the router, type ssh -l cisco 192.168.8.1, then type your password and press Enter.
You can see SSH sessions when you use the show ssh command again.
Apply the show line command and check the output as follows.
You can use the exit command to terminate the SSH connection on Cisco Router.
How to Configure SSH on Cisco Router in GNS3? ⇒ Video
You can watch the following video to configure SSH on Cisco Router with GNS3, and you can also subscribe to our YouTubechannel to support us.
In this article, we have discussed the SSH configuration on Cisco Router with the GNS3 network simulator program. We have reviewed SSH sessions that connected to a Cisco Router. Thanks for following us!
If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!
Also, you can add to browser bookmarks by pressing the CTRL+D to read this article later!
Articles Related to Configuring SSH on Cisco Router in GNS3