How to avoid the majority of attempts to brute-force ssh access to your server.
1- Login using your “root” user credential.
2- Edit the file : /etc/ssh/sshd_config
Search for the lines :
# What ports, IPs and protocols we listen for Port 22
To switch for example the ssh port to port 1468, you should replace as follow :
# What ports, IPs and protocols we listen for Port 1468
For the choice of port, use a port greater than 1024.
3- Restart your ssh server :
# /etc/init.d/sshd restart
4- Verify that your ssh server started using the right port :
(1468 is the port number defined before)
This command should return an output similar to this:
tcp 0 0 0.0.0.0:1468 0.0.0.0:* LISTEN 3986/sshd
If the result of the command returns nothing, Be carfull and do not logout of the server and check…
View original post 69 more words