Reset SSH Key

Post Reply
StarScream
Member
Posts: 9
Joined: 07 Dec 2017 16:33

Reset SSH Key

Post by StarScream »

Hi!

I have implemented a management VRF. To connect to other switches via the management interface, I like to initiate the ssh session from the switch. However, in one case, I accidentally did not say (yes) to trust the fingerprint of the host. I no longer get the option and can not initiate a session to that switch. How can I reset this?

The switch I'm connecting to is running AOS 6. I think one of the options would be to generate a new key on it. Does anyone have information on how to accomplish that? Or how I would go about resetting the trust in ssh client on my AOS 8 switch?

Thanks!
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Reset SSH Key

Post by silvio »

Hi, not sure.... but you can try to delete all the RSA/DSA-keys within the network-folder. Maybe you have to reboot the switch to have affect.
regards
Silvio
StarScream
Member
Posts: 9
Joined: 07 Dec 2017 16:33

Re: Reset SSH Key

Post by StarScream »

I'll double check the network folders. I found keys in the system folder, but didnt notice any in the network folders on AOS 8.
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Reset SSH Key

Post by silvio »

You are correct. There where a changing between R6 to R7/R8 with this location. Have you tested to delete this keys?
regards
Silvio
ramos
Member
Posts: 1
Joined: 07 Jul 2023 08:40

Re: Reset SSH Key

Post by ramos »

This worked for me in AOS 8

#open Maintenance shell
su

#clear data
truncate -s 0 ~/.ssh/known_hosts

#exit Maintenance shell
exit
Last edited by ramos on 07 Jul 2023 08:44, edited 1 time in total.
Post Reply

Return to “OmniSwitch 6860 / 6860E”