cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
2270
Views
5
Helpful
5
Replies

Issue with SSH remote access to switch.

shawn.koh
Level 1
Level 1

Hi, I am not able to SSH to my switch but telnet no problem.

I have already tried to zeroise the crypto key and re-generate again but problem still persists.

When I show log, this is the error msg.

241207: May 10 15:42:05.220: SSH2 0: RSA_sign: private key not found
241208: May 10 15:42:05.220: SSH2 0: signature creation failed, status -1

Anyone able to advise?

5 Replies 5

also try clearing the keys which eventually disable ssh depending on your device and regenerating the keys after.Also make sure to verify the regeneration of the key

show crypto key

what IOS version by the way?there's a possibility that you are hitting this bug here also

***Please rate all the useful posts***
-Prabath

I have already zeroize the key (it is same as clearing/removing the key).

Re-generated the key but still not working....

Not sure if restarting the switch will resolve the issue. We encountered this problem only after changing the hostname...

I came across this old thread here what it basically suggesting is to go back to your original name and then follow it in a sequence as in zeroized the key > Change host name > regenerate the key.

See if that helps before restarting 

***Please rate all the useful posts***
-Prabath

Supper... !!! it works.. Thank you..

damirich94
Level 1
Level 1

Hello!

I tried to create your situation in GNS.

**************

What I made in R1.

conf t

int f0/0

no shut

ip add 10.10.10.10 255.255.255.0

ip domain-name example.com

crypto key generate rsa

1024

ip ssh version 2

username admin secret 123

line vty 0 4

login local

transport input ssh

do write


**********

What I made in R2.

conf t

int f0/0

no shut

ip add 10.10.10.20 255.255.255.0

do write

 

****************************
I tried to connect via SSH from R2 to R1 = OK.

After that I changed hostname of router R1 to R44 and rebooted router.

Next I tried to connect via SSH again and everything is OK.

Problem didn't appear.

Am I wrong somewhere?

 

Review Cisco Networking for a $25 gift card