Creating a Subdomain for an SFTP site on AWS

2

I currently have an sftp site setup on AWS where I can connect via Filezilla by providing the long AWS Public DNS name or the Public IP address(hostname) along with my credentials.

I have an existing domain abc.com which is hosted elsewhere(not aws). I want to use a sub domain such as sftp.abc.com to connect to my sftp site instead of the IP address.

Can I create the subdomain(sftp.abc.com) on AWS using Route53? If so, how do I accomplish this?

Would this affect my primary domain site abc.com ?

Anyone who can give me some advice on this would be helpful. Thanks

K1ngPin34

Posted 2018-06-25T17:13:34.400

Reputation: 35

Are you already using Route53 for your DNS? – Attie – 2018-06-25T17:26:46.487

Do you understand that DNS only provides loopup support for services like SFTP? So if you would like different servers on abc.com and site.abc.com, then you'll need two IP addresses. If you are content with different ports or usernames, then there is no need for an alternate domain name. – Attie – 2018-06-25T17:26:58.457

SFTP / SSH does not interfere with HTTP / HTTPS – Attie – 2018-06-25T17:28:47.383

No.. I'm currently not using Route53 for the DNS. Yes, I would be pointing sitie.abc.com to an IP address. Would the steps mentioned in this article accomplish this? https://bubinga.co/pointing-subdomain-aws-ec2-instance/

– K1ngPin34 – 2018-06-25T18:38:39.020

Answers

2

I can connect via Filezilla by providing the long AWS Public DNS name or the Public IP address(hostname) along with my credentials.

DNS maps an domain name to an IP. Subdomains are no different. Therefore it should be possible to map the AWS Public IP to your subdomain with a standard A record in DNS (through whichever provider you use for abc.com).

Can I create the subdomain (sftp.abc.com) on AWS using Route53?

Since you apparently are not using Route53 for the DNS of abc.com and already have a Public IP through AWS, this is likely not the proper way to go.

Would the steps mentioned in this article accomplish this?

The answer is most likely yes.

Anaksunaman

Posted 2018-06-25T17:13:34.400

Reputation: 9 278

Yep It worked. Thanks a ton for the responses. – K1ngPin34 – 2018-06-25T20:18:08.480

Your welcome. Glad it worked. =) – Anaksunaman – 2018-06-25T22:29:48.557