有没有办法用FTP或SFTP,而不是连接到一个Amazon S3存储内置在AWS控制台亚马逊的文件传输界面?似乎很奇怪,这不是一个现成的选择。
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.
只需使用 s3fs
文件系统(或类似)到Linux服务器上(如亚马逊EC2装入桶),并使用服务器内置的SFTP服务器访问桶。
Just mount the bucket using s3fs
file system (or similar) to a Linux server (e.g. Amazon EC2) and use the server's built-in SFTP server to access the bucket.
s3fs
添加您的安全凭证的形式访问密钥ID:秘密访问密钥
到 / etc / passwd文件,s3fs
添加一个水桶安装进入的fstab
:
Install the s3fs
Add your security credentials in a form access-key-id:secret-access-key
to /etc/passwd-s3fs
Add a bucket mounting entry to fstab
:
<bucket> /mnt/<bucket> fuse.s3fs rw,nosuid,nodev,allow_other 0 0
有关详细信息,请参阅我的指导设置的SFTP访问亚马逊S3 。
For details, see my guide Setting up an SFTP access to Amazon S3.