The ssh server rekey-interval command sets the rekey-interval to update the key pair of the SSH server.
The undo ssh server rekey-interval command cancels the rekey-interval to update the key pair of the SSH server and restore the default value.
By default, the rekey-interval to update the key pair of the SSH server is zero, which indicates no update.
Usage Scenario
The system automatically updates the key pair of the SSH server at the configured interval. If the client is connected with the server, the public key of the server on the client is not immediately updated. The public key of the server on the client is updated only when the client is re-connected with the server.
Precautions
This command applies only to the SSHv1 protocol.