Use the CLI commands in this topic to changing your own local user account status.
Caution
Although you can change your own user account with a Monitor, Analyst, or Auditor role, you cannot save the changes to memory. Your changes could be lost if an administrator reboots without saving changes or reverts to the last saved configuration.
Any role
Log in to the CLI as yourself.
Go to CLI configuration mode:
hostname > enable hostname # configure terminal
To change your local account status:
Specify that you cannot log in to the appliance locally using a password, but can do so using an SSH authorized key. Use the following command:
username <username> disable loginNote
If your role is Monitor, Analyst, or Auditor, the CLI session will end immediately after you run this command.
Specify that you cannot log in to the appliance locally, but can log in remotely. Use the following command:
username <username> disable local-login
(Operator role only) Save your changes:
hostname (config) # write memory