By iamaaron
Through the DigitalOcean dashboard, you are able to add domains to droplets. Let’s say you add six domains to a droplet, as if you are running multiple domains off of the same server. You are still able to SSH into the server through each domain, seeing as it resolves to the IP address.
Is there a way to disable SSH functionality for specific domains?
Thanks! Aaron
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Unfortunately this is not possible because there is no way for SSH server to tell which domain you are using. When you use a domain to connect to SSH, DNS will resolve the IP address for the domain and IP address will be used to make the SSH connection.
For security, I would recommend changing the port number of your SSH server or using fail2ban.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.