How to Configure SSH in Packet Tracer - SYSNETTECH Solutions
How to Configure SSH in Packet Tracer - SYSNETTECH Solutions
There are 2 versions of the SSH protocol. These; Version 1 and Version 2.
SSH V1 exploits several patented encryption algorithms and is vulnerable
to a well-known vulnerability that could allow an attacker to enter data into
the communication flow.
SSH V2, this release has an advanced key exchange algorithm that is not
vulnerable to the same abuse and includes more powerful and
comprehensive features:
To enable SSH in the real scenario, make sure that the file name of your
Cisco IOS software is k9 (crypto).
Step 1
First, run Packet Tracer and then create a network topology as shown in
the image below. Add an additional Router to the workspace, because after
configuration we will connect the Router to the Router with SSH.
Step 2
Open the CLI prompt by clicking on the SYSNETTECH Router and press
Enter to skip the initial configuration.
Step 3
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname SYSNETTECH
SYSNETTECH(config)#interface gigabitethernet 0/0
SYSNETTECH(config-if)#ip address 192.168.1.1 255.255.255.0
SYSNETTECH(config-if)#no shutdown
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
SYSNETTECH(config-if)#exit
SYSNETTECH(config)#ip domain name sysnettechsolutions.com
SYSNETTECH(config)#crypto key generate rsa
The name for the keys will be: SYSNETTECH.sysnettechsolutions.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
SYSNETTECH(config)#ip ssh version 2
*Mar 1 0:6:12.698: %SSH-5-ENABLED: SSH 1.99 has been enabled
SYSNETTECH(config)#ip ssh time-out 10
SYSNETTECH(config)#ip ssh authentication-retries 3
SYSNETTECH(config)#line vty 0 4
SYSNETTECH(config-line)#login local
SYSNETTECH(config-line)#privilege level 15
SYSNETTECH(config-line)#transport input ssh
SYSNETTECH(config-line)#exit
SYSNETTECH(config)#username cisco privilege 15 password cisco123
SYSNETTECH(config)#end
SYSNETTECH#wr
Building configuration...
[OK]
SYSNETTECH#
Step 4
Step 5
To quickly configure the R1’s interface, double-click on it, click the Config
tab in the window that opens, and then configure the Port Status option of
the GigabitEthernet0/0 interface to On, then assign the IP address.
Step 6
To test whether SSH is running, open the PC1 prompt and establish a
connection using the command below.
-l : Login means.
cisco : The username to use to connect to the router.
192.168.1.1 : The IP address of the router.
Step 7
Enter the user name and password you created, and as soon as you press
Enter, the connection will be established as in the image below.
Step 8
After executing the show ssh command on PC1 Command Prompt, you
can check the version of the SSH protocol that is linked.
Step 9
In this step, execute the following command to make SSH from router to
router.