How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH.

#1. Block An IP Address from SSH

  • First of all, log into your SSH as a root.
  • Enter the below command.
/scripts/cphulkdblacklist 180.156.169.4

Note: Replace the dummy IP Address with the IP Address you want to blacklist.

*To execute the command cphulkd should be anabled from WHM.

  • You’ll receive the following result.
[root@test ~]# /scripts/cphulkdblacklist 180.156.169.4
180.156.169.4 has been blacklisted

#2. Unblock An IP Address from SSH

  • Again, log into the SSH as a root user.
  • Execute the following command.
/scripts/cphulkdwhitelist 180.156.169.4
  • The result will appear as:
[root@test ~]# /scripts/cphulkdwhitelist 180.156.169.4
180.156.169.4 has been whitelisted
Check the blog to get the detailed information.

 

  • ban IPs in ssh, ssh, cphulkd command, script, Block, whm, Unblock IPs in ssh, IP Address, root, whitelist, blacklist IP in SSH, UNBLOCK, blacklist, how to
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...

How to find recent cPanel login sessions via SSH?

You can easily check the cPanel login sesssions via SSH by executing below given commands. The...