688ViewsSystem viewPredefined user rolesnetwork-adminParametersport-number: Specifies a port number in the range of 1 to 65535.Usage guidelinesIf you modify the SSH port number when the SSH service is enabled, the SSH service is restartedand all SSH connections are terminated after the modification. SSH users must reconnect to theSSH server to access the server.When the device acts as an SSH redirect server, modifying the SSH service port on the deviceaffects existing SSH redirect connections as follows:• If an SSH user accesses the destination device by specifying the SSH redirect listening port,modifying the SSH service port does not affect the existing SSH redirect connection.• If an SSH user accesses the destination device by specifying the absolute number of the userline, modifying the SSH service port terminates the SSH redirect connection. The SSH usermust reconnect to the SSH redirect server to access the destination device.If you set the SSH port to a well-known port number, the service that uses the well-known portnumber might fail to start. Well-known port numbers are in the range of 1 to 1024.Examples# Set the SSH service port to 1025. system-view[Sysname] ssh server port 1025ssh server rekey-intervalUse 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.Syntaxssh server rekey-interval intervalundo ssh server rekey-intervalDefaultThe minimum interval for updating the RSA server key pair is 0 hours. The system does not updatethe RSA server key pair.ViewsSystem viewPredefined user rolesnetwork-adminParametersinterval: Specifies the minimum interval for updating the RSA server key pair, in the range of 1 to 24hours.