Cannot connect to Compute Engine instance via SSH

后端 未结 6 1099
野趣味
野趣味 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:35

    1) SSh into the vm by cloud console.

    2) Change the root password sudo passwd

    3) set below parameters to yes by nano /etc/ssh/sshd_config

    PasswordAuthentication PermitRootLogin PasswordAuthentication

    4) restart sshd service sshd restart

提交回复
热议问题