Cannot connect to Compute Engine instance via SSH

后端 未结 6 1089
野趣味
野趣味 2021-02-04 10:04

I\'ve just created an instance using Google Cloud Platform\'s Compute Engine and tried to connect to it via SSH connection but it failed.

I\'m following the quick start

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 10:42

    Not sure why, if the user already existed (eg: already SSH logged in google web console), it doesn't work when I manually added SSH keys into metadata on google web console. I have tried hundred of times from the steps below.

    I found out you have to manually add your ssh key through web SSH CONSOLE -> ssh in on google web console and copy ssh pub key on your local machine (usually is in ~/.ssh/) and append (edit and paste to the end) it to ~/.ssh/authorized_keys.

提交回复
热议问题