Cisco Router SSH Configuration – When configuring Cisco routers for the first time, we can perform this operation through the console connection. After initial configuration, we will configure the Cisco router telnet connection settings. And at this point, Cisco is reaching the router through the network and continuing our remaining operations.
Cisco Router SSH Configuration
Cisco Router SSH Configuration
When we configure Cisco routers with telnet, there will be an unsecured connection since the telnet connection will be unauthorized. When Telnet is used, the data is transmitted without encryption. However, if the SSH protocol use, the data will be encrypted. You can think of this as VPN connection security.
We have done previously the telnet connection to Cisco Router. You can reach from topic “Cisco Router Telnet Configuration“!
Cisco Router SSH Configuration Related Softwares
VMware Workstation 12.5.5 Download
GNS3 2.0.1 Download
Cisco IOS c3725 Download
How to Configure SSH on Cisco Router and Cisco Switch?
After creating a small network topology with GNS3 and VMware Workstation for the Cisco Router SSH access configuration, we will apply the SSH connection. The GNS3 network simulator program provides to make a more specific network according to the Cisco Packet Tracer program. For those working on Cisco exams, the GNS3 program is the ideal one.
You need to add Cisco IOS to the GNS3 program before doing this.
How to install Cisco IOS on the GNS3 program? If you do not know the answer to the question, we recommend you to read “Adding Cisco IOS to GNS3“
For the Cisco Router SSH access configuration process, run the GNS3 program first. Then we create a new project.
In the GNS3 program, drag and drop the Cisco Router c3725.
Add one Switch and Host to the GNS3 workspace. Then click option 3. Then connect one end of the cable to the FastEthernet0 / 0 interface of the Cisco Router and the other end to the Switch. Connect the computer to the Switch.
We completed the cabling for the Cisco Router SSH configuration. We will run the Cisco Router later. Now let’s check the VMware Workstation VMnet3 IP address.
VMware Adaptor Setting for GNS3
VMware Adaptor Ip Address for 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 the VMware Workstation Virtual Network Editor program, assign 192.168.8.0 Ip blocks.
Virtual Machine VMware Adaptor Ip Address
I have Windows 8.1 operating system installed on my own VMware Workstation program. There may be a different operating system. If you want to download Windows 8.1 x64 TR operating system, you can download it here.
In the Windows 8.1 virtual machine’s network card settings, set the Custom option to VMnet3.
How to use VMware Virtual Network Editor? If you do not know, you can arrive by reading the topic called the “VMware Workstation Virtual Network Editor Configuration“
Once you have gone to the GNS3 program, you can now run the Cisco Router. Click the Start button as shown below.
After you start the Cisco Router, double-click it to open the console window. And apply the following commands in order.
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
After applying the commands in order, perform the Cisco Router SSH configuration from the VMware virtual machine, passing the next step.
On the VMware virtual machine, open the Putty program and type the FastEthernet0/0 IP address of the Cisco Router. Then make sure that the SSH option is selected and click the Open button.
Click Yes button in response to Putty security warning.
The Cisco Router SSH connection was successfully installed. In the Login as the section, type in the username that you created and then click the Enter key.
You will be prompted for a password after checking a sub-line. Enter the password cisco123 created in the password field and press the Enter key.
We successfully completed the Cisco Router SSH configuration process! Let’s check the sessions now.
In privileged user mode, type the show line command and press the Enter key. And then the connections on the Cisco Router will then appear. The SSH connection appears that opened via VTY.
Use the show ssh command in privileged configuration mode to check the SSH version and test the connection. At the output of the show command, it appears that the SSH version is 2.0.
If you want to make an SSH connection over the Cisco Router in a different location, we can connect successfully after you run ssh -l cisco 192.168.8.1 command. Press the Enter key immediately after typing the command.
After checking a sub-line, you will be prompted for the password and enter the generated password.
If we run show ssh command again, we can see the information about the connection.
Let’s apply the show line command…
You can use the exit command to terminate the SSH connection over the Cisco Router.
Cisco Router SSH Configuration ⇒ Video
You can watch how to configure SSH on Cisco Router in GNS3 and also subscribe to our YouTube channel…
We have completed the topic called the “Cisco Router SSH Configuration”. In Cisco router configuration, the telnet connection is an unsecured connection. Instead, you can continue the process by activating the SSH protocol. Cisco Router SSH configuration allows you to connect your Cisco Router from a different location.
If this article is helpful, send me feedback by commenting! Thanks in advance, take care of yourself!
Also, you can add to the browser bookmarks by pressing the Ctrl+D to read this article later!