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
/etc/ssh/
Open
/etc/ssh/sshd_config
file and edit following
#Port 22
Now uncomment it (remove #) and change it to non standard port.
Port 1985
Save file “sshd_config” and restart SSHD service
[root@server ssh]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
Remember if you are using firewall , first allow port you are using for SSH in firewall first otherwise you wont be able to access server.
Incoming search terms:
- ChangeSSHDefaultPorttoNonStandardPort|FarazAhmedSiddiqui
- error extract di cpanel
- faraz csf
- firewall
- hardening security non standard ports
- litespeed webserver monitoring
- mysql 1030 Got error 28 from sto
- port ahamd farza
- stock












