U
SER
A
UTHENTICATION
3-81
Figure 3-35. SSH Server Settings
CLI – This example enables SSH, sets the authentication parameters, and
displays the current configuration. It shows that the administrator has
made a connection via SHH, and then disables this connection.
Generating the Host Key Pair
A host public/private key pair is used to provide secure communications
between an SSH client and the switch. After generating this key pair, you
must provide the host public key to SSH clients and import the client’s
public key to the switch as described in the proceeding section (Command
Usage).
Console(config)#ip ssh server 4-49
Console(config)#ip ssh timeout 100 4-50
Console(config)#ip ssh authentication-retries 5 4-51
Console(config)#ip ssh server-key size 512 4-52
Console(config)#end
Console#show ip ssh 4-55
SSH Enabled - version 2.0
Negotiation timeout: 120 secs; Authentication retries: 5
Server key size: 512 bits
Console#show ssh 4-55
Connection Version State Username Encryption
0 2.0 Session-Started admin ctos aes128-cbc-hmac-md5
stoc aes128-cbc-hmac-md5
Console#disconnect 0 4-25
Console#