I've 2 compute engine instances of Ubuntu 18.04 running on Google Cloud Platform. Although i'm able to connect to them thru Putty's terminal from my Win10 PC, but I'm not able to connect to any of the instance using win10 powershell or bash.

I've my private key uploaded properly at c:/users/bob/.ssh/keyfilename and public key loaded at the account/project wide level (computer engine> metadata> ssh keys).

As told, using these very keys, I'm able to connect to my instance using putty terminal.

I've read many help articles on the same topic/wording, but almost all help articles just deal with keeping private key and public key at their rightful places, which I already have (otherwise putty wouldn't be working).

  • Edit your question with the exact command that you are using. Oct 14, 2019 at 0:18
  • I'm using ssh root@the_ip_address_of_my_instance. I've edited my question so. Oct 14, 2019 at 11:33
  • Where is powershell being used in your command? If the keypair and username are correct, this error typically means that the keypair file has incorrect file permissions. Oct 14, 2019 at 13:42
  • I opened powershell on Win10 and gave the above-said command. And since I'm able to login to the same GCP instance with the same key pair (and same username), thru Putty, the key-pair seems to be fully ok. What permissions would be fine? What permissions should I give/check? Oct 14, 2019 at 14:00
  • The keypair must be read-only for ssh which enforces this rule, putty does not. There are many answers to the question of keypair file permissions. For Windows, this is not so simple. Oct 14, 2019 at 14:10

1 Answer 1


The process to connect to an instance using PowerShell is documented in GCP documentation at this time is supported for Windows instances

To connect to a Linux instance from a Windows the way to go is Putty, if you really want this feature I suggest you to open a Feature Request with Google using the Create new Compute Engine issue form

  • Ah! So in simplest words: It is not supported yet. So, I'll consider/mark this an answer (after waiting 2 more days). Oct 18, 2019 at 7:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .