Author Topic: Why SSH port doesnot change?  (Read 181 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Why SSH port doesnot change?
« 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 love CWP

Offline
**
Re: Why SSH port doesnot change?
« Reply #1 on: July 24, 2018, 06:17:54 PM »
I  removed the # character from the beginning of the line and now changed.
It shoud look this way:

Code: [Select]
port 2211
I love CWP

Offline
**
Re: Why SSH port doesnot change?
« Reply #2 on: July 26, 2018, 04:35:43 AM »
I  removed the # character from the beginning of the line and now changed.
It shoud look this way:

Code: [Select]
port 2211

and then don't forget to perform the following command to restart the ssh service

Code: [Select]
service sshd restart