I have not used windows in 23 years … not sure I’m the right person to help
IAP tunneling can get you access to WinRM which especially for Windows 2016 will be better supported than SSH. The trick will be finding away to get the tunnel built similar to how we do for SSH via ProxyCommand.
Before asking questions, please make sure to do plenty of your own research and try things out yourself.
It’s helpful if you organize what you’ve considered, what you’ve looked up, what you’ve tried, and what results you got.
Also, please provide enough background information about the issue, as well as any relevant sample config files or playbooks.
If you ask lots of questions without sharing these details—as if you’re just using us instead of Google or ChatGPT—it’s not really a great approach, in my opinion.
At the very least, I’m not your dedicated consultant.
Apologies @kurokobo , I can understand. Since I tried already couple of ways to connect the machine using gcloud compute ssh ( not working ) and not able to post everything I tried yesterday since the post will look long. From next time will try to put all my tries here so that responders will have better idea. As always Thanks lot for your response.
Also nothing is special about machines in GCP. You can always open management ports for both SSH, both Linux and Windows, and WinRM, for Windows, directly. At the end of the day they are just operating systems running on a hypervisor.
If you’re restricted to using gcloud tooling to build temporary tunnels it is going to continue to require additional layers like non mainstream connection plugins and work-arounds.
I’d rule out connecting them using traditional or expected direct paths first.
Sure @wayt . I too agree that we need to try the direct and simplest approach. But when considering SSH or winrm, they cannot be directly used as is since we have only internal ip for our machines. So here , I am forced to use IAP with gcloud compute SSH to connect to these machines. But let me also try winrm approach that I can modify something especially for GCP.