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?

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.

   Step 1

Open the GNS3 program and create a new project.

How to Configure SSH on Cisco Router in GNS3?

   Step 2

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 3

Add one Switch and Host to the GNS3 workspace. Cable the network devices you added.

How to Configure SSH on Cisco Router in GNS3?

   Step 4

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.

How to Configure SSH on Cisco Router in GNS3?

VMware Virtual Machine Connection with GNS3

VMware Adapter Ip Address of Physical Computer

   Step 5

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 6

After creating VMnet3 in VMware Workstation Virtual Network Editor program, assign 192.168.8.0 Ip block.

How to Configure SSH on Cisco Router in GNS3?

VMware Adapter Ip Address of Virtual Machine

   Step 7

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 8

Click the Start / Resume all nodes button to launch the Cisco Router.

How to Configure SSH on Cisco Router in GNS3?

   Step 9

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

 
How to Configure SSH on Cisco Router in GNS3?

   Step 10

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 11

Click on the Yes button in the Putty security warning window.

How to Configure SSH on Cisco Router in GNS3?

   Step 12

The Cisco Router SSH connection was successfully installed. In the Login as section, type the username you created and press the Enter key.

How to Configure SSH on Cisco Router in GNS3?

   Step 13

In the Password field, type the password for the username you created (cisco123) and press Enter.

How to Configure SSH on Cisco Router in GNS3?

   Step 14

After you provide the SSH connection to Cisco Router, you can then manage the Router over the LAN or WAN.

How to Configure SSH on Cisco Router in GNS3?

   Step 15

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 16

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 17

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.

How to Configure SSH on Cisco Router in GNS3?

   Step 18

To make an SSH connection over the router, type ssh -l cisco 192.168.8.1, then type your password and press Enter.

How to Configure SSH on Cisco Router in GNS3?

   Step 19

You can see SSH sessions when you use the show ssh command again.

How to Configure SSH on Cisco Router in GNS3?

   Step 20

Apply the show line command and check the output as follows.

How to Configure SSH on Cisco Router in GNS3?

   Step 21

You can use the exit command to terminate the SSH connection on Cisco Router.

How to Configure SSH on Cisco Router in GNS3?

Our Recommendation

You can purchase “Cisco Routing & Switching” from Amazon.

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.

  Final Word

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

Products Related to Configuring SSH on Cisco Router in GNS3
Related Products


Files Related to Configuring SSH on Cisco Router in GNS3
Related Files

You can download the VMware Workstation 14 virtualization program by clicking the button below.

VMware Download

You can download the latest version GNS3 program by clicking the button below.

GNS3 Download

You can download Putty program by clicking the button below.

Putty Download

You can download the Cisco c3725 image by clicking the button below.

Cisco IOS c3725 Download

2 thoughts on “How to Configure SSH on Cisco Router in GNS3?

Leave a Reply

Your email address will not be published. Required fields are marked *

3 × 1 =