Users Guide

Table Of Contents
Security Commands 1218
Example
The following example generates RSA key pairs.
console(config)#crypto key generate rsa
crypto key pubkey-chain ssh
Use the crypto key pubkey-chain ssh command in Global Configuration
mode to enter public key configuration mode in order to manually specify
public keys for SSH clients or an individual user.
Syntax
crypto key pubkey-chain ssh user-key
username
{rsa|dsa|ecdsa}
rsa — RSA key.
dsa — DSA key.
ecdsa — Elliptic curve digital signature algorithm.
Default Configuration
By default, this command has no public keys configured.
Command Mode
Global Configuration mode
User Guidelines
This public key is used to authenticate an administrator to the switch when
using SSH. This avoids the need for the administrator to enter a password on
every login.
The Key String is the contents of the public key in uu-encoded format.
Example
The following example configures a public key for administrator bob, enables
the SSH server, and enables public key authentication over SSH.
console#configure
console(config)#crypto key generate rsa
console(config)#crypto key generate dsa
console(config)#crypto key pubkey-chain ssh user-key bob rsa