set system services ssh port


The set system services ssh port command changes the listening port number of the SSH server.


Command Syntax

set system services ssh port <port-number>


Parameter

Parameter

Description

port <port-number>

Specifies the listening port number of the SSH server. The value is an integer ranging from 1 to 65535.

The default listening port number of the SSH server is 22.


Usage Guidelines

Users can use this command to configure the new port number of SSH server to prevent attackers from accessing the standard port of SSH service and ensure security.

Note that,

If the modified port number is not 22, the client needs to specify port number when logging in using SSH.


Example

  • Change the listening port number of the SSH server to 30.
admin@Xorplus# set system services ssh port 30
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.