The ssh server dh-exchange min-len command configures the minimum key length supported during Diffie-hellman-group-exchange key exchange between the SSH server and client.
The undo ssh server dh-exchange min-len command restores the default minimum key length supported during Diffie-hellman-group-exchange key exchange between the SSH server and client.
By default, the minimum key length supported is 3072 bits.
Usage Scenario
If the SSH client supports the Diffie-hellman-group-exchange key of more than 1024 bits, run the ssh server dh-exchange min-len command to set the minimum key length to 3072 bits to improve security.
Precautions
Security risks exist if the minimum Diffie-hellman-group-exchange key length is less than 2048 bits. You are advised to set the minimum key length to 3072 bits.
This command takes effect for both IPv4 and IPv6 SSH servers.