Cisco Packet Tracer, there was a problem setting up SSH in Switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022
11:58 PM
- last edited on
05-08-2023
11:38 AM
by
Paul Zimmerman
I tried to install an SSH server inside Packet Tracer but it doesn't work for unknown reasons.
I used these commands on the Switch:
Switch(config)#interface vlan 1 Switch(config-if)#ip address 192.168.100.2 255.255.255.0 Switch(config-if)#no shutdown Switch(config)#ip default-gateway 192.168.100.1 Switch(config)#ip domain-name test.com Switch(config)#hostname S0 S0(config)#crypto key generate rsa The name for the keys will be: S0.test.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] S0(config)#ip ssh version 2 S0(config)#username admin privilege 15 password cisco S0(config)#line vty 0 15 S0(config-line)#login local S0(config-line)#transport input ssh
- Labels:
-
Other Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 02:51 AM
Hi
Use 2048 key size for SSH v2.
You must receive this message:
*Mar 2 8:42:53.776: %SSH-5-ENABLED: SSH 1.99 has been enabled
I just tried here on my PT and works fine. If you have problem, attach you PT file here. Just zip it first.
