erase authorized-keys

Last Updated : Nov 22, 2024 |

This command deletes a user’s public keys file used for public key authentication.

If the users in the running-config are different than the users stored on the Branch Gateway file system, the user will get a warning about “abandoned” user directories.

Syntax

erase authorized-keys {<username> | all | abandoned}

Parameters

Parameter

Description

Possible Values

Default Value

username

Branch Gateway local username created with username command

Branch Gateway username.

“all” to delete keys for all users (admin)

Context

ssh-server-configuration

User level

Admin or read-write

Read-write users can only erase their own keys.

Admin users can erase all users’ keys

Example

(develop-ssh-server-configuration)# 
(develop-ssh-server-configuration)# erase authorized-keys root
Confirm: Erase ALL authorized keys for user root (Y/N)? y
Done!


(ssh-server-configuration)# erase authorized-keys all
Confirm: Erase ALL authorized keys for ALL USERS (Y/N)? y
Done!


(ssh-server-configuration)# erase authorized-keys abandoned

*** Removing abandoned directory for user olduser
Done!