Is there a way to connect to an Amazon S3 bucket with FTP or SFTP rather than the built-in Amazon file transfer interface in the AWS console? Seems odd that this isn't a readily available option.
Just mount the bucket using
For details, see my guide Setting up an SFTP access to Amazon S3. |
|||||||||
|
There are theoretical and practical reasons why this isn't a perfect solution, but it does work... You can install an FTP/SFTP service (such as proftpd) on a linux server, either in EC2 or in your own data center... then mount a bucket into the filesystem where the ftp server is configured to chroot, using s3fs. I have a client that serves content out of S3, and the content is provided to them by a 3rd party who only supports ftp pushes... so, with some hesitation (due to the impedance mismatch between S3 and an actual filesystem) but lacking the time to write a proper FTP/S3 gateway server software package (which I still intend to do one of these days), I proposed and deployed this solution for them several months ago and they have not reported any problems with the system. As a bonus, since proftpd can chroot each user into their own home directory and "pretend" (as far as the user can tell) that files owned by the proftpd user are actually owned by the logged in user, this segregates each ftp user into a "subdirectory" of the bucket, and makes the other users' files inaccessible. There is a problem with the default configuration, however. Once you start to get a few tens or hundreds of files, the problem will manifest itself when you pull a directory listing, because ProFTPd will attempt to read the You can disable this behavior in ProFTPd, but I would suggest that the most correct configuration is to configure additional options
Without this option, you'll make fewer requests to S3, but you also will not always reliably discover changes made to objects if external processes or other instances of s3fs are also modifying the objects in the bucket. The value "30" in my system was selected somewhat arbitrarily.
This option allows s3fs to remember that Unrelated to the performance issues that can arise with ProFTPd, which are resolved by the above changes, you also need to enable
This is an option which never should have been an option -- it should always be enabled, because not doing this bypasses a critical integrity check for only a negligible performance benefit. When an object is uploaded to S3 with a Quotes are from the man page of s3fs. Grammatical errors are in the original text. |
|||||||||||||||||||||
|
Well, S3 isn't FTP. There are lots and lots of clients that support S3, however. Pretty much every notable FTP client on OS X has support, including Transmit and Cyberduck. If you're on Windows, take a look at Cyberduck or CloudBerry. |
|||||
|