What is SSH?
SSH means Secure Shell. SSH provides authentication by using the private key. It is the root access to your account from the remote system in a secured manner. SSH access is enabled for VPS and dedicated server.
How to View Banned IP via SSH?
Using SSH, the banned IP can be viewed by using the command iptables. It allows system administrators to manage incoming and outgoing traffic via a set of configurable table rules. Iptables is a command line firewall. This helps the system administrator to filter the network traffic of the system.
What is iptable?
iptable uses policy chains to allow or block traffic. When a connection tries to establish itself on a system, iptable looks for a rule in its list to match it. It resorts to the default action, If it doesn’t find one. iptables are almost pre-installed on any Linux distribution.
To update/install it, just retrieve the iptable package
sudo apt-get install iptables
iptable uses 3 different chains. They are input, forward and output.
Input – This chain is used to control the behavior for incoming connections.
Forward – This chain is used for incoming connections that are not actually being delivered locally. The data is just forwarded to its target.
Output – This chain is used for outgoing connections.
Command to view Banned IP:
A client was not able to access the server and update his site, although the server was accessible from anywhere. With the help of the command iptables, the client’s IP was checked and it comes to know that the IP was blocked. To view the banned IP use the command
iptables -L INPUT -v -n