The ssh server rekey-interval command sets the interval for updating the key pair of the SSH server.
The undo ssh server rekey-interval command cancels the setting of the interval for updating the key pair of the SSH server and restores the default value 0.
By default, the interval for updating the key pair of the SSH server is 0 that indicates no updating.
| Parameter | Description | Value |
|---|---|---|
| interval | Specifies the interval for updating the key pair of the SSH server. | The value is an integer ranging from 0 to 24 hours. The default value is 0. |
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.