简体   繁体   English

无法通过传输连接到 S3 存储桶,只能通过 AWS CLI

[英]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:为了重现您的情况,我执行了以下操作:

  • Installed Transmit安装传输
  • In Quick Connect I selected a Protocol of Amazon S3快速连接中,我选择了Amazon S3协议
  • Clicked Connect单击连接

发送登录

  • It prompted me for an Access Key and Secret Key, which I entered它提示我输入访问密钥和秘密密钥
  • It then presented me with a list of my Amazon S3 buckets然后它向我展示了我的 Amazon S3 存储桶列表
  • I was then able to double-click the name of a bucket and the contents was displayed然后我可以双击存储桶的名称并显示内容

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.

相关问题 AWS Batch 容器无法通过 aws-cli 访问 S3 - AWS Batch container cannot access S3 via aws-cli https 通过云端和 AWS 的 S3 存储桶不起作用 - https via cloudfront and S3 bucket of AWS doesn't work 如何使用 aws cli 命令仅显示 s3 存储桶中的目录 - How to display only the directories from s3 bucket using aws cli command 使用 force_delete=true 创建的 AWS S3 存储桶无法通过 terraform 拒绝访问删除 - AWS S3 Bucket created with force_delete=true fails to delete with Access Denied via terraform 无法删除 aws s3 存储桶上的文件 - Cannot delete file on aws s3 bucket 如何使用 AWS CLI 仅复制 S3 存储桶中与给定字符串模式匹配的文件 - How to use AWS CLI to only copy files in S3 bucket that match a given string pattern 如何通过 python boto3 列出 aws s3 存储桶中的所有文件夹 - How to list all folders inside aws s3 bucket via python boto3 Shell 使用 AWS CLI 获取 S3 存储桶大小的脚本 - Shell script to fetch S3 bucket size with AWS CLI Windows 中的 AWS Cli 不会将文件上传到 s3 存储桶 - AWS Cli in Windows wont upload file to s3 bucket 有没有办法使用 aws s3 ls cli 将 S3 存储桶名称添加到存储桶的递归列表中? - Is there a way to add the S3 bucket name to the recursive list of a bucket using aws s3 ls cli?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM