Block & Un Block IP In SSH
If you work with Linux, chances are secure shell (SSH) is a part of your daily routine.
In fact, remotely administering a Linux server can be a challenge without this often vaunted tool.
And although SSH, by design, is quite secure, it’s not perfect.
If you have an SSH daemon running on a server, especially one that is accessible to the outside world, chances are it’s getting hit by regular attacks.
Eventually one of those attacks will brute force its way into your server and have at your data. To that end, you need to take every precaution necessary to make sure SSH is protected.
Block IP In SSH
csf -g IPADDRESS
Example: csf -g 192.168.1.1
UNBlock IP In SSH
csf -dr IPADDRESS
Example: csf -dr 192.168.1.1
Restart CSF (Firewall)