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?
We will use the GNS3 and VMware Workstation programs for SSH configuration. Create a new virtual machine on VMware Workstation and install Windows operating system.
If you have not already added the Cisco Router IOS image on GNS3, you can browse how to add Cisco IOS to GNS3. After completing the necessary preparations for SSH configuration on Cisco Router, follow the steps below in order.
Open the GNS3 program and create a new project.
Drag and drop the Cisco Router c3725 you previously added to the GNS3 workspace. You can also download the c3725 Router IOS image from the button at the bottom of the article.
Add one Switch and Host to the GNS3 workspace. Cable the network devices you added.
After creating a small network topology to configure SSH on Cisco Router, open the Virtual Network Editor program of the VMware Workstation virtualization program and configure VMnet3.
VMware Virtual Machine Connection with GNS3
VMware Adapter Ip Address of Physical Computer
In the VMware Workstation program, create VMnet3 in the Virtual Network Editor program. Then assign the IP address to VMnet3 from the network and sharing center settings as shown below.
After creating VMnet3 in VMware Workstation Virtual Network Editor program, assign 192.168.8.0 Ip block.
VMware Adapter Ip Address of Virtual Machine
Configure the network adapter setting of the virtual machine running on VMware to Custom (VMnet3). You can also browse how to install Windows 8.1 with VMware.
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-if)# exit 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 R1(config-line)# exit R1(config)# end R1# wr
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 Mode and 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 YouTube channel 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!