Linux Programmer | RHCE | RHCSA

Search This Blog

Thursday, 27 January 2022

Allow SSH for specific IP without using IPTABLES.

With using below steps you can block and Allow specific IPs to take SSH without using iptables and Firewall.

Open below file,

cat /etc/hosts.allow

sshd: 192.168.0.13 : allow
sshd: ALL : deny

This will allow SSH for 192.168.0.13 IP only.

No comments:

Post a Comment

Run first C# Program in ubuntu and create linux command

Got it — here’s how to go from zero to running C# on Linux in a clean, beginner-friendly way. 1. Install .NET SDK The .NET SDK is ...