Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cbusuioceanu/allow-only-one-ip-host-to-access-ssh

Allow only one ip/host to access SSH
https://github.com/cbusuioceanu/allow-only-one-ip-host-to-access-ssh

allow-list centos centos6 centos7 centos8 denyhosts linux security sshd sshd-config

Last synced: 13 days ago
JSON representation

Allow only one ip/host to access SSH

Awesome Lists containing this project

README

        

# Allow only one IP host to access SSH

1. Make sure SSHD was built with TCP wrappers:
```
ldd /usr/sbin/sshd | grep libwrap
```

2. Execute:
```
nano /etc/hosts.allow
```

3. Add:
```
sshd: YOUR_IP: ALLOW
sshd: ALL: DENY
```