I am trying to ssh into my cluster on GCP, but I am getting the 'ssh: Could not resolve hostname service: Temporary failure in name resolution' error. However, when I use the username 'gcpuser' instead of 'ubuntu', it works fine. Why is this happening?
GeorgiosAtTenbeo
Asked on Jan 26, 2024
The error 'ssh: Could not resolve hostname service: Temporary failure in name resolution' usually occurs when the hostname cannot be resolved. In your case, it seems like the hostname 'service' cannot be resolved. This could be due to a DNS issue. However, when you use the username 'gcpuser' instead of 'ubuntu', it works fine because the default username for GCP VMs created by SkyPilot is 'gcpuser'. To ssh into the cluster created by SkyPilot, you can use the command 'ssh cluster-name' as we have added every cluster created in the ssh config for you.