{"id":2491,"date":"2018-05-03T19:03:15","date_gmt":"2018-05-03T19:03:15","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2491"},"modified":"2018-05-03T19:03:15","modified_gmt":"2018-05-03T19:03:15","slug":"amazon-aws-setting-up-ftp-on-ec2-windows-instances","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2491","title":{"rendered":"Amazon AWS: Setting up FTP on EC2 Windows Instances"},"content":{"rendered":"<p>After reading this article, you will be able to successfully FTP to a running Amazon AWS EC2 Windows instance without an elastic IP.<\/p>\n<p>&nbsp;<\/p>\n<p>First, create a windows instance in Amazon AWS Management Console. Once the instance is accessible, we will need to change some settings:<\/p>\n<ol>\n<li>In AWS, select \u201cSecurity Groups\u201d from the left-hand menu.<\/li>\n<li>Select the name of the security group for the instance you just created<\/li>\n<li>In the window at the bottom of the screen select the \u201cInbound\u201d tab from the small frame.<\/li>\n<li>Pick \u201cCustom TCP Rule\u201d from the \u201cCreate a new rule\u201d dropdown.<\/li>\n<li>Enter 50000-51000 in the port range field.<\/li>\n<li>In the source field, use discretion. Leaving the field at 0.0.0.0\/0 will allow all. That may be ok depending on your intended use, I\u2019m using it as a disposable server, so I\u2019m not going to get into security in this article.<\/li>\n<li>Select \u201cAdd Rule\u201d and the \u201cApply Rule Changes\u201d (Make sure you do both!!!).<\/li>\n<li>Now repeat the steps 4-7 for port 21.<\/li>\n<\/ol>\n<p>We are now done setting up the security groups in AWS, let\u2019s setup FileZilla Server. (You can setup any type of FTP server you want, I prefer FileZilla because it is free, rock-solid, and highly configurable. If you want to use something else, just apply the same settings.<\/p>\n<ol>\n<li>Install FileZilla Server on the Amazon Instance (after remoting in) and log into the server interface. (You will have to enable downloads in IE to download FileZilla from their website. )<\/li>\n<li>Click the settings icon on the interface.<\/li>\n<li>On the general settings tab, \u201cListen on these ports:\u201d will be defaulted to 21. Just leave it.<\/li>\n<li>Select the \u201cPassive mode settings\u201d from the tree on the left.<\/li>\n<li>Place a check mark next to \u201cUse custom port range\u201d and set the port range to \u201c50000-51000\u201d.<\/li>\n<li>Now get your \u201cPublic DNS Name\u201d from the Amazon AWS console. Your IP address will be in the Public DNS Name, or you can ping the DNS name to have it resolved for you. (you may be able to use the Public DNS Name, I don\u2019t see why it wouldn\u2019t work, but I personally use the IP instead.<\/li>\n<li>Enter the IP into the \u201cUse the Following IP\u201d field on FileZilla\u2019s \u201cPassive mode settings\u201d screen.<\/li>\n<li>Now follow the instructions that come with FileZilla to setup a group and a user.<\/li>\n<\/ol>\n<p>Now we are at the final step. You will now need to adjust the Windows Firewall settings to allow the ports we allowed in the AWS Security Group.<\/p>\n<ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li>On the instance open \u201cWindows Firewall with Advanced Security\u201d.<\/li>\n<li>Now click on \u201cInbound Rules\u201d on the left-hand pane.<\/li>\n<li>Click on \u201cNew Rule\u201d in the right-hand pane.<\/li>\n<li>You should really use the \u201cProgram\u201d option***, but I\u2019m going to use the port option and then click next.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>***As I said before, I\u2019m not going to cover the topic of security, I\u2019m sure someone will tell you to never do it this way, but this is the way I need it for the testing I\u2019m doing.<\/p>\n<ol>\n<li>Select TCP and the \u201cSpecific local ports\u201d option and enter 50000-51000 and press next.<\/li>\n<li>Select \u201cAllow the connection\u201d and press next.<\/li>\n<li>Leave all three options checked and press next.<\/li>\n<li>Type a name for your rule and hit finish. Then repeat these steps for port 21.<\/li>\n<\/ol>\n<p>And you are done! Go ahead and connect with your favorite FTP client.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After reading this article, you will be able to successfully FTP to a running Amazon AWS EC2 Windows instance without an elastic IP. &nbsp; First, create a windows instance in Amazon AWS Management Console. Once the instance is accessible, we will need to change some settings: In AWS, select \u201cSecurity Groups\u201d from the left-hand menu. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[],"class_list":["post-2491","post","type-post","status-publish","format-standard","hentry","category-awsamazon-web-services-amazon"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2491"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2491\/revisions"}],"predecessor-version":[{"id":2492,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2491\/revisions\/2492"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}