SSH Server-Key Size
– Specifies the SSH server key size. (Range: 512-896 bi ts;
Default: 768)
- The server key is a private key that is never share d outside th e switch.
- The host key is shared with the SSH client, and is fixed at 1024 bits .
Web
– Click Security, SSH, Settings. Enable SSH and adjust the authen tication
parameters as required, then click Apply. Note that you must first generate the host
key pair on the SSH Host-Key Settings page before you can e nable the SSH s erver.
Figure 6-7 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.
Configuring the Secure She
6
Console(config)#ip ssh server
Console(config)#ip ssh timeout 100
Console(config)#ip ssh authentication-retries 5
Console(config)#ip ssh server-key size 512
Console(config)#end
Console#show ip ssh
SSH Enabled - version 2.0
Negotiation timeout: 120 secs; Authentication retries: 3
Server key size: 768 bits
Console#show ssh
Information of secure shell
Session Username Version Encrypt method Negotiation state
------- -------- ------- -------------- -----------------
0 admin 2.0 cipher-3des session-started
Console#disconnect 0
Console#
25-17
25-18
25-19
25-19
25-22
25-22
23-24
6-15