Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: yeknafar on July 24, 2018, 03:53:28 PM
-
Hi
I changed SSH port 2 days ago in config file /etc/ssh/sshd_config and in CSF firewall and restartd SSH and CSF Firewall many times but I receive a warning about it always:
"WARNING: Security vulnerability! Your server is using default SSH Port 22, to make your server more secure change SSH port in config file /etc/ssh/sshd_config and in CSF firewall !
After changes are done don't forget to restart SSH and CSF Firewall. "
Thanks for your help
-
I removed the # character from the beginning of the line and now changed.
It shoud look this way:
port 2211
-
I removed the # character from the beginning of the line and now changed.
It shoud look this way:
port 2211
and then don't forget to perform the following command to restart the ssh service
service sshd restart
-
There's some kind of bug. When I change the ssh port in Services Config -> SSH Configuration, you would expect this part of the
/etc/csf/csf.conf to change accordingly:
# This list is replaced, if present, by "Port" definitions in
# /etc/ssh/sshd_config
PORTS_sshd = "2221"
But it doesn't. For me, I had to change this setting and manually open the port in firewall settings. So this PORTS_sshd does nothing. Definitely glitchy.