Telnet, Secure Shell (SSH) and Secure Login (Slogin) Commands
78-21075-01 Command Line Interface Reference Guide
14.7
user-key
The user-key SSH Public Key-string Configuration mode command associates a
username with a manually-configured SSH public key.
Use the no user-key command to remove an SSH user and the associated public
key.
Syntax
username {rsa | dsa}
user-key
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
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-pubkey-chain)#
switchxxxxxx(config-pubkey-key)#
crypto key pubkey-chain ssh
user-key bob rsa
key-string row
key-string
command to
14
235