最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - Cannot connect to gcloud instance in VSCode - Stack Overflow

programmeradmin1浏览0评论

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'

发布评论

评论列表(0)

  1. 暂无评论