cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

330
Views
5
Helpful
5
Replies
Beginner

Issue with SSH remote access to switch.

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

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
Beginner

I have already zeroize the

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...

Highlighted

I came across this old thread

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

Re: I came across this old thread

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

Beginner

Re: Issue with SSH remote access to switch.

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?

 

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards