ssh - 从GCE VM分离磁盘以安装和编辑SSH

标签 ssh google-compute-engine

我试图分离临时实例上的磁盘,以便我可以挂载和编辑ssh_config,但是当我使用gcloud compute instances detach-disk INSTANCE --disk mydisk时,它显示

ERROR: (gcloud.compute.instances.detach-disk) There was a problem fetching the resource:
 - Insufficient Permission

有什么建议吗?我是Google Cloud的新手

最佳答案

您需要先授权您的帐户,然后才能使用gcloud命令。您可以运行以下命令进行授权。

$ gcloud auth login

关于ssh - 从GCE VM分离磁盘以安装和编辑SSH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31313334/

相关文章:

python - 在服务器上连续运行Python脚本

google-app-engine - Google 托管 VM 部署错误

java - 让 Maven/jetty 应用程序在 GCE 上永久运行

ssh - 未添加元数据中的 Google Cloud Compute 实例 SSH key

ssl - GCP Compute Engine 托管两个 HTTPS 网站

php - 仅使用 CentOS 安全设置的本地域上的 file_get_contents() 安全问题

unix - 管理大量主机上的authorized_keys

linux - 如何在Windows中使用Putty(SSH)登录linux

macos - 无法在优胜美地机器上使用 pem key 连接到 ec2 实例

linux - 如何从 bash shell 通过 SSH 连接到多个服务器并提供完整登录?