Lockdown SSH with TCPWrappers
From Acenet Knowledgebase
Revision as of 12:44, 3 November 2013 by Docs admin (Talk | contribs) (Created page with "To ensure SSH access is not lost during this process you will need to add your IP to the allow list. Access the server via command line Edit the file <syntaxhighlight lang=...")
To ensure SSH access is not lost during this process you will need to add your IP to the allow list.
Access the server via command line
Edit the file/etc/hosts.allow
sshd : YOURIP
sshd : 198.198.198.198
After you have added your IP to the allow list you can block other SSH access to the server.
Edit the file/etc/hosts.deny
sshd : all
SSH access should then be restricted to only your IP.
You can confirm the restriction is in place by attempting to SSH from any other host.