3com 3CRUS2475 Manuale Utente

Pagina di 522
374
C
HAPTER
 25: SSH C
OMMANDS
Example
The following example generates RSA key pairs.
ip ssh pubkey-auth
The ip ssh pubkey-auth Global Configuration mode command enables 
public key authentication for incoming SSH sessions. To disable this 
function, use the no form of this command.
Syntax
ip ssh pubkey-auth
no ip ssh pubkey-auth
Default Configuration
Public Key authentication fo incoming SSH sessions is disabled.
Command Mode
Global Configuration mode
User Guidelines
AAA authentication is independent.
Example
The following example enables public key authentication for incoming 
SSH sessions.
crypto key 
pubkey-chain ssh
The crypto key pubkey-chain ssh Global Configuration mode 
command enters the SSH Public Key-chain Configuration mode. The 
mode is used to manually specify other device public keys such as SSH 
client public keys. 
Syntax
crypto key pubkey-chain ssh
Console(config)# crypto key generate rsa
Console(config)# ip ssh pubkey-auth