Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 230 Bytes

File metadata and controls

18 lines (14 loc) · 230 Bytes

Allow only one IP host to access SSH

  1. Make sure SSHD was built with TCP wrappers:
ldd /usr/sbin/sshd | grep libwrap
  1. Execute:
nano /etc/hosts.allow
  1. Add:
sshd: YOUR_IP: ALLOW
sshd: ALL: DENY