There are certain domains pointing to my server.
# example.com example.com goes to 20.20.20.20 I want to deny ssh access using this domain names. I want my server to only accept ssh connections on 20.20.20.20. How can I configure this?
What I have tried
# /etc/ssh/sshd_config UseDNS no Example:
If user1 connects to 20.20.20.20 then it should show the login, otherwise it should just drop all connections.
I am on a Debian Distribution.
UseDNSoption on the server makes a reverse DNS lookup of the IP address of the connecting client and then a forward DNS lookup for the resulting name and looks if the result is the IP again. In a time where every dial-up connection has a valid DNS entry and cloud instances with proper DNS records are used for SSH scans, this option is not very helpful anymore.