- Make sure SSHD was built with TCP wrappers:
ldd /usr/sbin/sshd | grep libwrap
- Execute:
nano /etc/hosts.allow
- Add:
sshd: YOUR_IP: ALLOW
sshd: ALL: DENY
Allow only one ip/host to access SSH
ldd /usr/sbin/sshd | grep libwrap
nano /etc/hosts.allow
sshd: YOUR_IP: ALLOW
sshd: ALL: DENY
Allow only one ip/host to access SSH
MIT License