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.
In recent upgrade of ubuntu 22.04 and above we are not able to login server with SSH password. but when we try to login with key then it all...
No comments:
Post a Comment