cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
881
Views
0
Helpful
2
Replies

Cisco Packet Tracer, there was a problem setting up SSH in Switch

Richardkm
Level 1
Level 1

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

 YourTexasBenefits
 

2 Replies 2

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: