I try to connect VM on ssh got Permission denied (publickey) so i try on cloudshell and try to make key on vm still got same problem
[enter code here][1]to set key and update metadata when i put `ssh [instance name] [zone] [project id]
still Permission denied (publickey)
what should i do next try to open port 22 still same problem even log on serial port all so got login problem loop
gcloud compute firewall-rules list
and add
gcloud compute firewall-rules create default-allow-ssh --allow tcp:22
problem still the same can login or connect ssh
try to make new key to ssh key on console and make startup-script `#! /bin/bash useradd -G sudo username echo 'username:password.' | chpasswd
!/bin/bash
/usr/sbin/ufw allow 22/tcp`