Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; pippin_recent_posts has a deprecated constructor in /home/inimadi/domains/nimad24.com/public_html/wp-content/themes/Nimadco/inc/plugin/widgets/recent-posts-widget.php on line 15

Deprecated: Function create_function() is deprecated in /home/inimadi/domains/nimad24.com/public_html/wp-content/themes/Nimadco/inc/plugin/widgets/recent-posts-widget.php on line 145
How to block ip in SSH - Nimad

How to block ip in SSH

Home » Blog » How to block ip in SSH

How to block ip in SSH

How to block ip in SSH

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)

csf -r

Leave a Comment