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!
Reset SSH Key
Re: Reset SSH Key
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
regards
Silvio
-
- Member
- Posts: 9
- Joined: 07 Dec 2017 16:33
Re: Reset SSH Key
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.
Re: Reset SSH Key
You are correct. There where a changing between R6 to R7/R8 with this location. Have you tested to delete this keys?
regards
Silvio
regards
Silvio
Re: Reset SSH Key
This worked for me in AOS 8
#open Maintenance shell
su
#clear data
truncate -s 0 ~/.ssh/known_hosts
#exit Maintenance shell
exit
#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.