There are a multiplicity of articles on the web about setting up SSH on Google compute engine for Linux instances but a lack of ones describing how to successfully generate them for a windows instance.
I have created keys using
gcloud compute ssh instance name
where the instance is a windows 2008 server. I understood that the keys would be found under %user%/.ssh but no such luck. I can find them nowhere on the windows server instance. How do I successfully create keys for windows server in google's compute engine.
Best Answer
Your question is not very clear, however I'll try to answer it.
By default, no SSH service is running on the GCE Windows instances. If you're trying to connect to a Windows instance via SSH, then first you'll need to install and configure a SSH server (daemon) on your Windows VM.
However, if you're trying to SSH to a Linux VM from your Windows VM, first use
gcloud auth login
to authenticate your account. Then rungcloud compute ssh INSTANCE
, whereINSTANCE
is the target Linux VM.In this case, the SSH keys will be created and you can find them in the
%users%\.ssh\
folder of the Windows.