- Plesk for Linux
How to change the SSH port?
Connect to the server using SSH.
Open the configuration file
#Port 22line in the config file and specify other preferable value instead of standard port
#Port 22line in the config file and add the custom port, the connection will be available for both ports, for example:
- Restart sshd service:
# service sshd restart
Note: the new port must be opened in firewall.
Note: the incorrect SSH configuration may lead to server inaccessibility via SSH.