GCE: cannot login, The VM guest environment is outdated and only supports the deprecated 'sshKeys' metadata item

前端 未结 6 1601
没有蜡笔的小新
没有蜡笔的小新 2021-02-20 02:45

I cannot ssh into my Google Compute Engine (GCE) Wordpress instance anymore. It was working one month ago when I tried last. I use the Google built-in SSH client in a Chrome bro

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-20 03:16

    If you're seeing this on Debian 8 or 9, the most likely reason for this is that the google-compute-engine.* packages that allow SSH access to the instance have been removed by apt-get autoremove.

    If you have an open SSH connection to the machine or can use a tool like gcloud, running apt-get update && sudo apt-get install gce-compute-image-packages should fix this.

    If you no longer have any SSH access, there is a procedure available on the GCP docs site that can be used to restore it.

提交回复
热议问题