thank you for your base idea to find the solution by accessing the shell. Finally I found the solution. And for those who have similar problem here it is:
in exec mode start the shell by "start shell" command. It asks for login and password, So I created a temporary separate user for this purpose by "username script password 12345678" (I don't know why but only users created with clear password were able to login into shell)
the authorized keys are in the /flash/ADMIN_DIR/ssh/ directory. You may list the directory content by "ls /flash/ADMIN_DIR/ssh/" The authorized keys are stored in files named like auth_keys.username, where username part is the actual username. So to delete public auth keys of user joe issue the following:
rm /flash/ADMIN_DIR/ssh/auth_keys.joe
after it by "exit" command you leave the shell that's all
Unfortunately, to either of both deleting the old keys or emptying the file, you will need to help from the switch support. There are sets of shell access commands that the engineers only able to execute. I don't have the information of those commands.
DELL-Joey C
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did.
Well you can alter, but less would delete old keys. If necessary, then one would need to contact support to access the switch shell to remove. As an alternative, one can disable the existing SSH key and set it to default, then install a new SSH key on the switch, as to rebuild the SSH key.
DELL-Joey C
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did.
Bela Bodecs
1 Rookie
•
3 Posts
•
2 Points
0
0
Posted September 13th, 2024 07:40
dear DELL-Joey C,
thank you for your base idea to find the solution by accessing the shell. Finally I found the solution. And for those who have similar problem here it is:
in exec mode start the shell by "start shell" command. It asks for login and password, So I created a temporary separate user for this purpose by "username script password 12345678" (I don't know why but only users created with clear password were able to login into shell)
the authorized keys are in the /flash/ADMIN_DIR/ssh/ directory. You may list the directory content by "ls /flash/ADMIN_DIR/ssh/" The authorized keys are stored in files named like auth_keys.username, where username part is the actual username. So to delete public auth keys of user joe issue the following:
rm /flash/ADMIN_DIR/ssh/auth_keys.joe
after it by "exit" command you leave the shell that's all
(edited)