gsutil AccessDeniedException:401登录要求 [英] gsutil AccessDeniedException: 401 Login Required

查看:78
本文介绍了gsutil AccessDeniedException:401登录要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我运行以下命令:

gsutil -m cp -R file.png gs://bucket/file.png

我收到以下错误消息:

Copying file://file.png [Content-Type=application/pdf]...
Uploading   file.png: 42.59 KiB/42.59 KiB    
AccessDeniedException: 401 Login Required
CommandException: 1 files/objects could not be transferred.

我不确定是什么问题,因为我运行了config,并且可以看到我的所有存储桶.有人知道我需要做什么吗?

I'm not sure what the problem is since I ran config and I can see all my buckets. Does anyone know what I need to do?

注意:我没有gcloud,我只是安装了gsutil并运行了配置.

Note: I do not have gcloud, I just installed gsutil and ran the config.

推荐答案

访问任何Cloud服务都需要登录Google Cloud.您需要使用以下命令,该命令将指导您完成登录步骤,例如输入通过打开控制台中提供的浏览器链接生成的验证码.

Login to Google Cloud is needed for accessing any Cloud service. You need to use below command which will guide you through login steps like typing verification code you generate by opening browser link given in console.

gcloud auth login

这篇关于gsutil AccessDeniedException:401登录要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆