Specifies the method used for generating the one-time session keys for encryption and authentication with the Secure Shell (SSH) server and Diffie-Hellman group 14.
This command is not configured by default.
Global configuration mode
You can configure the SSH server key-exchange method to DH Group 14. When the SSH server key-exchange method is configured to DH Group 14, the SSH connection from a remote SSH client is allowed only if the key-exchange method at the client end is also configured to DH Group 14. Enter no ssh server key-exchange to restore SSH server key-exchange to the default value.
For information on DH Group 14, refer to RFC 3526.
For backward compatibility, the string "dh-group-14" is also acceptable in place of "diffie-hellman-group14-sha1"
To set SSH server key-exchange to DH Group 14:
device(config)# ssh server key-exchange diffie-hellman-group14-sha1
To restore the SSH server key-exchange to default value:
device(config)# no ssh server key-exchange