52
1011
Use the no user-key command to remove an SSH user and the associated public
key.
Syntax
username
user-key
{rsa | dsa}
username
no user-key
Parameters
•
username
—Specifies the remote SSH client username. (Length: 1–48
characters)
•
rsa—Specifies that the RSA key pair is manually configured.
•
dsa—Specifies that the DSA key pair is manually configured.
Default Configuration
No SSH public keys exist.
Command Mode
SSH Public Key-string Configuration mode
User Guidelines
After entering this command, the existing key, if any, associated with the user will be deleted.
You must follow this command with the key-string command to configure the key to the user.
Example
The following example enables manually configuring an SSH public key for SSH
public key-chain bob.
switchxxxxxx(config)#
switchxxxxxx(config-keychain)#
switchxxxxxx(config-keychain-key)#
AAAAB3NzaC1yc2EAAAADAQABAAABAQCvTnRwPWl
Telnet, Secure Shell (SSH) and Secure Login (Slogin) Commands
crypto key pubkey-chain ssh
user-key bob rsa
key-string row
OL-32830-01 Command Line Interface Reference Guide