Knowledgebase: Dedicated Server Guide
Change ssh port on Centos SELinux
Posted by Premium Reseller on 11 August 2019 01:48 AM

1. Edit port in ssh configuration

nano /etc/ssh/sshd_config
-> edit port to custom port e.g. 2222

2. On linux server with SELinux, you would get error Job for sshd.service failed because the control process exited with error code

Run command to enable port binding
semanage port -a -t ssh_port_t -p tcp 2222

(0 vote(s))
This article was helpful
This article was not helpful