【发布时间】:2021-08-19 05:13:43
【问题描述】:
过去几天我一直在尝试连接到 VM 实例。这是我尝试过的:
- 尝试通过 SSH 访问它会返回
username@ipaddress: Permission denied (publickey). - 使用 Google Cloud SDK 会返回:
No zone specified. Using zone [us-central1-a] for instance: [instancename]. Updating project ssh metadata...done. Waiting for SSH key to propagate. SFATAL ERROR: No supported authentication methods available (server sent: publickey) ERROR: (gcloud.compute.ssh) Could not SSH into the instance. It is possible that your SSH key has not propagated to theinstance yet. Try running this command again. If you still cannot connect, verify that the firewall and instance are set to accept ssh traffic. - 使用浏览器SSH just gets stuck on "Transferring SSH keys to the VM."
- 使用 PuTTy 也会导致
No supported authentication methods available (server sent: publickey)
我检查了串行控制台,发现:
systemd-hostnamed.service: Failed to run 'start' task: No space left on device
我最近确实调整了磁盘大小并重新启动了 VM,但仍然出现此错误。
访问端口 22 is allowed in the firewall rules。我该怎么做才能解决这个问题?
【问题讨论】:
-
您好!看看Troubleshooting SSH 页面。尝试按照 Google 的有关如何对 SSH 进行故障排除的指南进行操作。如果您按照指南操作仍无法访问您的虚拟机,请与我们分享;不要忘记添加您已经执行的步骤。
-
您好!我已阅读故障排除页面并尝试启用来宾环境,但在检查串行控制台后,我看到的只是“设备上没有剩余空间”。奇怪的是,我今天早些时候将启动磁盘大小从 10 GB 增加到 16 GB,但我仍然收到此错误。