C
HAPTER
24
| Authentication Commands
Secure Shell
– 843 –
ip ssh server
key size
This command sets the SSH server key size. Use the no form to restore the
default setting.
SYNTAX
ip ssh server-key size key-size
no ip ssh server-key size
key-size – The size of server key. (Range: 512-896 bits)
DEFAULT SETTING
768 bits
COMMAND MODE
Global Configuration
COMMAND USAGE
The server key is a private key that is never shared outside the switch.
The host key is shared with the SSH client, and is fixed at 1024 bits.
EXAMPLE
Console(config)#ip ssh server-key size 512
Console(config)#
ip ssh timeout This command configures the timeout for the SSH server. Use the no form
to restore the default setting.
SYNTAX
ip ssh timeout seconds
no ip ssh timeout
seconds – The timeout for client response during SSH negotiation.
(Range: 1-120)
DEFAULT SETTING
10 seconds
COMMAND MODE
Global Configuration
COMMAND USAGE
The timeout specifies the interval the switch will wait for a response from
the client during the SSH negotiation phase. Once an SSH session has been
established, the timeout for user input is controlled by the exec-timeout
command for vty sessions.