cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19578
Views
0
Helpful
17
Replies

SSHv2 - RSA Keys

zekebashi
Level 4
Level 4

Hello, 

I created a simple config file, listed below, and tried to copy and paste this config on a 2960-8Port switch. After pasting this file,  I receive as error message when I issue this command "show ip ssh SSH Disabled - version 1.99 % Please create RSA Keys to enable SSH (of at least 768 bits size) to enable SSH v2. Authentication timeout: 120 secs; Authentication retries: 3" 

I can't figure out why ssh v2 won't enable. I've tried it on several boxes/switches but I still receive the same error message. 

Any idea as why this happens. 

Thanks in advance. 

Best, ~zK 

no service pad

no service password-encryption

hostname Sales-SW-ACC2

ip domain name my.company.come

boot-start-marker

boot-end-marker

enable secret 5 xoadou435o4nadgaet!%Aou2

no aaa-new-model

ip dhcp pool 10.0.0.0

    network 10.0.0.0 255.255.255.0

    lease 0 0 10

service dhcp

spanning-tree mode past

spanning-tree pordtfast default

spanning-tree extend system-id

vlan internal allocation policy ascending

crypto key generate rsa generate-keys modulus 1024

interface GigabitEthernet0/1

interface GigabitEthernet0/2

interface GigabitEthernet0/3

interface GigabitEthernet0/4

interface GigabitEthernet0/5

interface GigabitEthernet0/6

interface vlan1

ip address 10.0.0.1 255.255.255.0

ip sea enabled reaction-alerts

ip dhcp excluded-address 10.0.0.1 10.0.0.10

line console 0

line vey 0 4

   privilege level 15

transport input telnet

line vty 5 15

no login

end

17 Replies 17

When you issue a "show inventory" command, what is the exact model of switch reported?

My solution that actually worked was 

crypto key generate rsa general-keys modulus 4096 label SSH

marcosgalvan285
Level 1
Level 1

I had the same issue I even tried using 

Crypto key generate rsa usage-key 2048 label SSH. I am still getting the same error that says  Please create RSA Keys to enable SSH (of at least 768 bits size) to enable SSH v2.