GCEのインスタンスにssh接続できない時の対策
$ gcloud compute instances list
instance-name
で、みると一覧にはあるけど
$ gcloud compute ssh instance-name
ERROR: (gcloud.compute.ssh) Could not fetch instance:
- The resource 'instance-path' was not found
で、なぜかつながらない時の対策
$ gcloud compute --project "project-name" ssh --zone "zone-name" "instance-name"
これでつながる。
Google Developer Console → 対象プロジェクト → (右側メニューの)コンピュート → Compute Engine → VMインスタンス → 対象インスタンスの 接続 ssh 右側のメニュー → gcloudコマンドを表示
からコピペしてきてもOK
Author And Source
この問題について(GCEのインスタンスにssh接続できない時の対策), 我々は、より多くの情報をここで見つけました https://qiita.com/shoya/items/15e2caf34aa2457f1c2e著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .