Linux - How to deny allow certains ip logging into ssh, Block or Unblock particular IP logging into SSH

How to deny allow certains ip logging into ssh

To deny / allow certains IP's logging into SSH

1. To deny all IP's logging into SSH :
 # vi /etc/hosts.deny -> At the end at

   ALL:ALL [It means that all the IP's are blocked now]

2. To allow only certain IP's for logging into SSH
 # vi /etc/hosts.allow

   ALL : 127.0.0.1

   sshd : IPaddress : allow [only ssh service]

   ALL : IPaddress : allow [all services]

That's it. you are done. This is how you can block or allow certain IP's in your ssh

The topic on Linux - How to deny allow certains ip logging into ssh is posted by - Math

Hope you have enjoyed, Linux - How to deny allow certains ip logging into sshThanks for your time

Tech Bluff