Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cbusuioceanu/allow-only-one-ip-host-to-access-ssh
- Owner: cbusuioceanu
- License: mit
- Created: 2019-07-13T14:07:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T14:14:05.000Z (over 5 years ago)
- Last Synced: 2024-05-02T04:46:39.197Z (6 months ago)
- Topics: allow-list, centos, centos6, centos7, centos8, denyhosts, linux, security, sshd, sshd-config
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```