453
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
port-number:
Specifies a port number in the range of 1 to 65535.
Usage guidelines
If you modify the SSH port number when the SSH server is enabled, the SSH service is restarted and
all SSH connections are terminated after the modification. SSH users must reconnect to the SSH
server to access the server.
If you set the SSH port to a well-known port number, the service that uses the well-known port
number might fail to start. Well-known port numbers are in the range of 1 to 1024.
Examples
# Set the SSH service port to 1025.
<Sysname> system-view
[Sysname] ssh server port 1025
ssh server rekey-interval
Use
ssh server rekey-interval
to set the minimum interval for updating the RSA server key pair.
Use
undo ssh server rekey-interval
to restore the default.
Syntax
ssh server rekey-interval
interval
undo ssh server rekey-interval
Default
The minimum interval for updating the RSA server key pair is 0 hours. The system does not update
the RSA server key pair.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
interval
: Specifies the minimum interval for updating the RSA server key pair, in the range of 1 to 24
hours.
Usage guidelines
This command is not available in FIPS mode.
Periodically updating the RSA server key pair prevents malicious hacking to the key pair and
enhances security of the SSH connections.