Page 1 of 1

Changed SSH Port

Posted: 06 Jun 2018, 06:19
by Ethelior
Hello, thanks for the great work you did to make all this effort on this awesome firewall.
Today i changed the default SSH port from 22 to 2022 on my vps, opened it in TCP_IN TCP_OUT but i saw in the CSF that it still says 22 as the SSH port. Is that a problem ?

Steps i took for the change:
1. Edited /etc/ssh/sshd_config and changed the port 22 to 2022 and deleted the #
2. Restarted SSHD service
3. Changed the port in TCP_IN and TCP_OUT from 22 to 2022.
4. Restarted CSF
5. Checked if changes working and they do. SSH is not working on port 22 now but 2022.
6. Checked in CSF Configuration at the end and it still says SSH port 22

Code: Select all

This list is replaced, if present, by "Port" definitions in /etc/ssh/sshd_config
PORTS_sshd = 22 (restricted UI item)

Re: Changed SSH Port

Posted: 06 Jun 2018, 06:20
by Ethelior
Forgot to say i am on Centos 6 latest version, CSF latest version and cPanel latest release.

Re: Changed SSH Port

Posted: 09 Aug 2018, 23:16
by knightrideruk
Hi
Is this line of code informational, i.e. change the SSHD port to whatever you are using at time in your case 2022.

knightrideruk

Out of the darkness comes light.............