Skip to content

cbusuioceanu/Allow-only-one-ip-host-to-access-SSH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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