错误:(gcloud.compute.ssh)无法获取资源:-权限不足 [英] ERROR: (gcloud.compute.ssh) Could not fetch resource: - Insufficient Permission

查看:120
本文介绍了错误:(gcloud.compute.ssh)无法获取资源:-权限不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过Compute Engine快速入门进行工作时遇到了麻烦:使用MongoDB教程构建待办事项应用程序. (我正在从计算引擎控制台中运行该教程;即 https://console.cloud.google.com/compute/instances?project= & tutorial = compute_quickstart)

I am having trouble working through the Compute Engine Quickstart: Build a to-do app with a MongoDB tutorial. (edit: I am running the tutorial from within the compute engine console; i.e. https://console.cloud.google.com/compute/instances?project=&tutorial=compute_quickstart)

我通过SSH进入后端实例.我输入从教程复制而来的"gcloud computing"命令.系统提示我输入密码.返回以下内容:

I SSH into the backend instance. I enter the "gcloud compute" command as copied from the tutorial. I am prompted to enter a passphrase. The following is returned:

WARNING: The public SSH key file for gcloud does not exist.

WARNING: The private SSH key file for gcloud does not exist.

WARNING: You do not have an SSH key for gcloud.

WARNING: SSH keygen will be executed to generate a key.

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in

...

<< Identifying detail ommitted >>

...

**ERROR: (gcloud.compute.ssh) Could not fetch resource:
 - Insufficient Permission**

我以前没有碰到过本教程的这一阶段. 我正在使用安装了google-cloud-sdk的Windows 10 PC进行工作.我正在使用谷歌浏览器.我已经尝试过常规模式和隐身模式.

I had run through this stage of the tutorial on a previous occasion with no problems. I am working from a Windows 10 PC with the google-cloud-sdk installed. I am using google chrome. I have tried in both regular and incognito modes.

任何帮助或建议都会收到!

Any help or advice greatfully received!

  • DaveDub

推荐答案

似乎SSH尝试识别了项目中的实例,但是用户没有访问计算机所需的权限.

It looks like the attempt to SSH is recognising the instance in your project, but the user doesn't have the required permissions to access the machine.

您是否尝试过跑步:

gcloud auth login

并完成基于Web的授权以确保您尝试以正确的(经过身份验证的)用户身份访问计算机?此过程可确保您正在运行的Cloud SDK继承基于Web的授权中指定的用户的权限.有关详情,请参见此处.

and completing the web-based authorization to ensure you are attempting to access the machine as the correct (authenticated) user? This process ensures the Cloud SDK you are running inherits the permissions of the user specified in the web-based authorisation. See here for more information on this.

将链接添加到您正在关注的问题的教程中也是值得的.

It's also worth adding the link to the tutorial you are following to your question.

这篇关于错误:(gcloud.compute.ssh)无法获取资源:-权限不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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