Example
The following example enables public key authentication for incoming SSH sessions.
console(config)# ip ssh pubkey-auth
crypto key pubkey-chain ssh
The crypto key pubkey-chain ssh Global Configuration mode command enters SSH Public Key-
chain configuration mode. The mode is used to manually specify other Ethernet Switch Module
public keys such as SSH client public keys.
Syntax
crypto key pubkey-chain ssh
Default Configuration
By default, there are no keys.
Command Mode
Global Configuration mode
User Guidelines
•
Use this command to enter public key chain configuration mode.
•
This command can also be used when you need to manually specify SSH client's public keys.
Example
The following example enters the SSH Public Key-chain configuration mode.
console(config)# crypto key pubkey-chain ssh
console(config-pubkey-chain)#
user-key
The user-key SSH Public Key Chain Configuration mode command specifies which SSH public key
is manually configured and enters the SSH public key-string configuration command. To remove a
SSH public key, use the no form of this command.
Syntax
user-key username {rsa | dsa}
no user-key username
•
username — Specifies the remote SSH client username, which can be up to 48 characters
long.
rsa — RSA key.
•
268
SSH Commands