Changed SSH Port

Post Reply
Ethelior
Junior Member
Posts: 4
Joined: 23 Mar 2018, 07:53

Changed SSH Port

Post 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)
Ethelior
Junior Member
Posts: 4
Joined: 23 Mar 2018, 07:53

Re: Changed SSH Port

Post by Ethelior »

Forgot to say i am on Centos 6 latest version, CSF latest version and cPanel latest release.
knightrideruk
Junior Member
Posts: 3
Joined: 03 May 2014, 10:49

Re: Changed SSH Port

Post 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.............
Post Reply