Specifying the SSH service port
About the SSH service port
The default port of the SSH service is 22. You can specify another port for the SSH service to improve security of SSH connections.
Restrictions and 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.
Procedure
Enter system view.
system-view
Specify the SSH service port.
ssh server port port-number
By default, the SSH service port is 22.