
#Setup ftp server on amazon ec2 update#
to update your cloud server to latest stable release of *everything*. to access as root henceforth (rather than typing “sudo” at the start of each command) for brevity, and to avoid wearing out your fingers. If you cannot, you have bigger problems than I can address right now! This tutorial assumes you can login as ec2-user. Please ignore anything you already know, and complain like fury in the comments where I’ve explained anything wrong 🙂 Step One – Getting Started This can often be useful to do things such as allowing service providers or third parties to drop files into a directory to which they are “chrooted”. This description, below, will allow you to add simple, or secure (FTPS – secured by vsftpd) FTP to your Amazon Linux AWS EC2 instance. I’m trying to bring you up to speed with what commands do, as a lot of tutorials assume knowledge which may or may not exist in the user. I have added in some commentary which may or may not help for the novice / intermediate user. If you use Ubuntu or whatever, file locations, commands, and other such will more than likely be different. In plain English, this means, do not expect commands for one type of Linux to work in another. If you do not use AWS Linux, and you use, say, Ubuntu, or Lightsail, please note… your mileage may vary.

I’m assuming you use the AWS flavour of Linux. Step 7 -Change / Set user’s FTP home directory & give group permissionsīelow are the commands required to setup FTP (well, FTPS in fact, and specifically not SFTP, which you can most easily use by adding your security certificate to your FTP program and accessing over SSH) on your AWS EC2 cloud instance.Step 6 – Restrict user to home directory.Step 3 – Ensure vsftpd starts on server reboot.Step Two – Open Ports in Security Group.
