cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9450
Views
0
Helpful
3
Replies

Remove user with ssh public key

arnesanso
Level 1
Level 1

Hello!

How can I remove user with public key authentication in Cisco switch?

 

Example configuration:

username test2privilege 15 secret 5 $1$YeHW$fI767o2GPQrZD6FCT0Cfy1

username test2
key-hash ssh-rsa 129A49B4839259C6HE36C8184541EDER test2

 

Best regards,

 

 

Tadeja

1 Accepted Solution

Accepted Solutions

Try:

username ansotest2
no key-hash ssh-rsa F8E819F2B42BDBD2F3D39C712B3F3F2 test2

Or:


ip ssh pubkey-chain

no username ansotest2

View solution in original post

3 Replies 3

Philip D'Ath
VIP Alumni
VIP Alumni

no username test2

Hello!
This  command removes only the user.
Example:
  username ansotest2
   key-hash ssh-rsa F8E819F2B42BDBD2F3D39C712B3F3F2 test2

I  also want to remove fingerprint of  the key belonging to a user

Try:

username ansotest2
no key-hash ssh-rsa F8E819F2B42BDBD2F3D39C712B3F3F2 test2

Or:


ip ssh pubkey-chain

no username ansotest2