I have an instance running in gcloud and I'm trying to connect to the instance using VSCode, but I keep getting an error that says: "Could not establish connection to 'host name'."
I have gcloud SDK installed on my computer, I installed Google Cloud and Remote - SSH on VSCode, and I have confirmed that my instance is running via gcloud compute instances list
, and have confirmed that my instance is in my ~\ssh\config file.
Whenever I try to open a remote connection using the Remote Explorer, I get that error. Anyone know of any possible fixes or something I forgot to do? I'm on Windows by the way.
Edit: I'm also able to successfully connect using gcloud compute ssh 'instance name'