Reputation: 51
I upgraded the VM on a DataLab and tried to connect through the command line using datalab connect
. I received the error repeated every few seconds:
^[Permission denied (publickey). ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]. Connection broken Attempting to reconnect... Waiting for Datalab to be reachable at http://localhost:8081/
I tried resetting the SSH key using
sudo gcloud compute config-ssh
but get the same error and
gcloud compute ssh <new-vm-id>
but got the same error. I checked the Firewall Rules and the relevant ones are as follows:
Does anyone have any suggestions?
Upvotes: 0
Views: 210
Reputation: 51
The new VM needs to be turned on in VM Instances. This sounds basic, but you need to wait until the seemingly endless repetition of the error message has finished before turning on the VM and trying again. It's still quite an embarrassing oversight.
Upvotes: 1