Cisco Cisco ASR 5000

Page of 9109
  Context Configuration Mode Commands S-Z 
ssh  ▀   
 
Command Line Interface Reference, StarOS Release 18  ▄  
 
   
2789 
ssh 
Generates public and private keys for use with the configured Secure Shell (SSH) server for the current context and sets 
the public/private key pair to specified values. 
Product
 
All 
Privilege
 
Security Administrator, Administrator 
Mode
 
Exec > Global Configuration > Context Configuration 
configure > context context_name
 
Entering the above command sequence results in the following prompt: 
[context_name]host_name(config-ctx)# 
Syntax
 
ssh { generate key | key data length octets } [ type { v1-rsa | v2-rsa | v2-dsa } ] 
no ssh key [ type { v1-rsa | v2-rsa | v2-dsa } ] 
no ssh key [ type { v1-rsa | v2-rsa | v2-dsa } ]
 
This command clears configured SSH keys. If type is not specified, all SSH keys are cleared. 
generate key
 
Generates a public/private key pair which is to be used by the SSH server. The generated key pair is in use 
until the command is issued again. 
key data length octets
 
Sets the public/private key pair to be used by the system where 
data
 is the encrypted key and 
length
 is the 
length of the encrypted key in octets. 
data
 must be an alphanumeric string of 1 through 1023 characters and 
octets
 must be a value in the range of 0 through 65535. 
[ type { v1-rsa | v2-rsa | v2-dsa } ]
 
Specifies the type of SSH key to generate. If type is not specified, all three key types are generated. 
 
v1-rsa
: SSHv1 RSA host key only 
 
v2-rsa
: SSHv2 DSA host key only 
 
v2-dsa
: SSHv2 RSA host key only 
Important:
  For maximum security, it is recommended that only SSH v2 be used. 
v2-rsa
 is the recommended 
key type. 
Usage 
Generate secure shell keys for use in public key authentication.