Gcloud compute ssh

691 views
Skip to first unread message

Rob Wood

unread,
May 6, 2016, 4:00:03 AM5/6/16
to gce-discussion
I've used this command previously on my machine (Windows 7 Home Premium x64) and had no problems. I ran gcloud components update today (not sure if that had anything to do with this though) and now gcloud compute config-ssh and gcloud compute ssh <instance> error out with "Your platform does not support OpenSSH." I've tried it with OpenSSH for Windows (http://www.mls-software.com/opensshd.html) installed, and with the new Windows OpenSSH (https://github.com/PowerShell/Win32-OpenSSH), to no avail. Can't find anything about this issue online. I'm going to end up working around this, but it'd be nice if it worked, and it DID work before, so I'm wondering if the update broke it, or what. Hoping someone out there has some information on this.

Faizan (Google Cloud Support)

unread,
May 6, 2016, 3:53:17 PM5/6/16
to gce-discussion
Hello Rob,

Can you post the output of gcloud info.

Thanks,

Faizan

Rob Wood

unread,
May 6, 2016, 11:55:08 PM5/6/16
to gce-discussion
For some reason I'm leery of posting all that info about my machine in here. But looking into it, I'm pretty sure it's a problem with my path environment variable, probably funky characters in it or some such. Will post the resolution when I find it. Thanks for your efforts though.

Rob Wood

unread,
May 7, 2016, 1:01:36 AM5/7/16
to gce-discussion
Actually, the problem is here:

ssh_keygen_command = 'winkeygen'

The Python script is set to look in Google\Cloud SDK\google-cloud-sdk\bin\sdk for winkeygen.exe, .cmd,.bat, .com, or .ps1, but there's nothing there. I went into the archive and found a version that actually had that winkeygen.exe file in the place it was supposed to be. I reran the installer, and copied winkeygen into the appropriate directory, and that's resolved the issue. Y'all should probably make sure that that executable gets into that distribution zip archive.

Rob Wood

unread,
May 7, 2016, 1:03:57 AM5/7/16
to gce-discussion
Oh - I'm looking for work right now actually, if y'all could use some help. =}

Faizan (Google Cloud Support)

unread,
May 10, 2016, 10:46:20 AM5/10/16
to gce-discussion
Hello Rob,

Thank you for identifying the issue.

Can you provide me your gcloud version, I'll forward this feedback to my engineering team.

Faizan
Reply all
Reply to author
Forward
0 new messages