FTP / SFTP访问亚马逊S3存储 [英] FTP/SFTP access to an Amazon S3 Bucket
本文介绍了FTP / SFTP访问亚马逊S3存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法用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.
这篇关于FTP / SFTP访问亚马逊S3存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文