C
HAPTER
24
| Authentication Commands
Secure Shell
– 844 –
EXAMPLE
Console(config)#ip ssh timeout 60
Console(config)#
RELATED COMMANDS
exec-timeout (730)
show ip ssh (846)
delete public-key This command deletes the specified user’s public key.
SYNTAX
delete public-key username [dsa | rsa]
username – Name of an SSH user. (Range: 1-8 characters)
dsa – DSA public key type.
rsa – RSA public key type.
DEFAULT SETTING
Deletes both the DSA and RSA key.
COMMAND MODE
Privileged Exec
EXAMPLE
Console#delete public-key admin dsa
Console#
ip ssh crypto
host-key generate
This command generates the host key pair (i.e., public and private).
SYNTAX
ip ssh crypto host-key generate [dsa | rsa]
dsa – DSA (Version 2) key type.
rsa – RSA (Version 1) key type.
DEFAULT SETTING
Generates both the DSA and RSA key pairs.
COMMAND MODE
Privileged Exec
COMMAND USAGE
â—† The switch uses only RSA Version 1 for SSHv1.5 clients and DSA
Version 2 for SSHv2 clients.