I am currently in the process of setting up and hardening a small VPS running Debian 11. I have already followed this guide, which involves some basic security measures. However, I would additionally like to limit SSH access to my home IP address and perhaps also 1 or 2 more. The issue is that my home IP is liable to change at any time.
Rather than IP addresses, I would like to whitelist one or more hostnames for SSH access. This would allow me to simply update one of my domain's DNS records whenever my home IP changes to restore my access to the VPS.
How can I do this within Debian itself without installing additional packages? Thank you so much.
-Collin