Hardening SSH security is necessary for better server security, Using SSH over default port is a risk its suggested by Linux gurus to either change SSH port or disable password based access to the server.
Usually hackers / script kiddies tries to hack servers by making brute force attack on server specially on port 22 so always use CSF firewall to secure server from port scanning and change SSH default port so hackers wont be able to easily access it.
To change port from 22 to non standard port for example 1985 follow these guidelines:
Open “sshd_config” file usually located it
file and edit following
Now uncomment it (remove #) and change it to non standard port.
Save file “sshd_config” and restart SSHD service
[root@server ssh]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
Incoming search terms:
- error extract di cpanel
- faraz csf
- hardening security non standard ports
- litespeed webserver monitoring
- mysql 1030 Got error 28 from sto
- port ahamd farza