Report this

What is the reason for this report?

How to set up SSH/SFTP subdomain?

Posted on June 15, 2018

I currently connect to my droplets via SSH and SFTP by specifying the droplet’s IP address and port 22 in the SSH/SFTP client programs. This works fine, but I would like to be able to specify a domain or subdomain (e.g., ftp.example.com) rather than an IP address. Managed hosts I’ve used in the past provided me with a subdomain for that purpose, but I have not been able to find out how to set that up on my droplets. Can someone give me some pointers?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Well, You would need your own domain, Once you have your domain, in your domain registrar’s domain settings you can set up an A record and point that to your droplet’s IP Address.

You may need to wait for DNS to update. A record is all there is to point a subdomain to a server so I am not sure what is causing your problem other than your registrar being slow to update their DNS or your DNS server not updating their records.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.