< Home

ssh server rekey-interval

Function

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.

Format

ssh server rekey-interval interval

undo ssh server rekey-interval

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Set the interval for updating the key pair of the SSH server to one hour.

<sysname> system-view
[sysname] ssh server rekey-interval 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >