[英]Cannot connect to S3 bucket via Transmit, only via AWS CLI
I have this S3 bucket that I can connect to through AWS CLI.我有一个可以通过 AWS CLI 连接到的 S3 存储桶。 First I go to Terminal and set it up:
首先我 go 到终端并设置它:
aws configure
AWS Access Key ID [****************]: ACCESS_KEY
AWS Secret Access Key [****************]: SECRET_KEY
Default region name [None]:
Default output format [None]:
After that I can do the regular operations on it from Terminal.之后,我可以从终端对其进行常规操作。 To list the folders at the root of the S3 bucket, I just go to Terminal and write:
要列出 S3 存储桶根目录下的文件夹,我只需向终端输入 go 并写入:
aws s3 ls s3://name-of-my-bucket
The other AWS CLI operations also work just fine.其他 AWS CLI 操作也能正常工作。 But when I try to set this S3 bucket up in Transmit, it doesn't seem to work.
但是当我尝试在 Transmit 中设置这个 S3 存储桶时,它似乎不起作用。 In Transmit you can set up an S3 bucket, so I choose that preset for starters, then add my Access Key ID and my Secret Key.
在 Transmit 中,您可以设置一个 S3 存储桶,因此我为初学者选择该预设,然后添加我的访问密钥 ID 和我的秘密密钥。 For Address I've tried everything: s3.amazonaws.com, name-of-my-bucket.s3.amazonaws.com, name-of-my-bucket, etc. When I try to use the Address s3://name-of-my-bucket it changes to the SFTP preset, which obviously won't work.
对于地址,我已经尝试了所有方法:s3.amazonaws.com、name-of-my-bucket.s3.amazonaws.com、name-of-my-bucket 等。当我尝试使用地址 s3://name -of-my-bucket 它更改为 SFTP 预设,这显然不起作用。
Since I know the Access Key ID and Secret Key are correct, I'm assuming that my mistake must be in the Address field, but I cannot figure it out.因为我知道 Access Key ID 和 Secret Key 是正确的,所以我假设我的错误一定在 Address 字段中,但我无法弄清楚。 Can you help?
你能帮我吗?
I've had other S3 buckets and never had this problem, they worked just fine and were easy to set up.我有其他 S3 存储桶,但从未遇到过这个问题,它们工作得很好并且易于设置。
Thanks谢谢
When you refer to Transmit , I presume you are referring to the Transmit file transfer app for MacOS .当您提到Transmit时,我认为您指的是 MacOS 的 Transmit 文件传输应用程序。
To reproduce your situation, I did the following:为了重现您的情况,我执行了以下操作:
Amazon S3
Amazon S3
的协议 The current Transmit documentation mentions that it needs to list the bucket to determine the bucket region for users.目前的Transmit文档提到需要列出bucket来为用户确定bucket区域。
https://help.panic.com/general/s3/ https://help.panic.com/general/s3/
So add "s3:ListBucket" as an action to the IAM policy, then specify the Remote Path as "/" followed by your S3 bucket name when you log in.因此,将“s3:ListBucket”作为一项操作添加到 IAM 策略,然后在登录时将远程路径指定为“/”,后跟您的 S3 存储桶名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.