Problems trying to SSH/reset SSH

90 views
Skip to first unread message

Andrew Fu

unread,
Aug 14, 2018, 8:58:12 PM8/14/18
to gce-discussion
I'm trying to SSH into gcloud. I'm currently inside ~/.ssh and have some VNC keys stored in there that was given to me. I have followed instructions with gauth login and set my project id to clear-mountain-94802. Here is the image of what I see after I respond 'y' to overwriting my files with the command gcloud compute ssh clear-mountain-94802 --verbosity=debug    

https://imgur.com/a/dasVppZ

It just gets stuck at "DEBUG: Executing command: [u'/cygdrive/c/WINDOWS/System32/OpenSSH/ssh-keygen', u'-t', u'rsa', u'-f', u'/home/D/.ssh/google_compute_engine']".

When I ctrl+c, it then shows "DEBUG: Subprocess [19348] got [2]". I'm at a loss as to why this is.

I'm running Windows 10 with a cygwin install.

Andrew Fu

unread,
Aug 14, 2018, 9:12:22 PM8/14/18
to gce-discussion
When I ran it again and it got stuck, I ctrl+c again and this time, I see this:

ERROR: gcloud crashed (OSError): [Errno 13] Permission denied

Milad (Google Cloud Platform)

unread,
Aug 15, 2018, 5:52:04 PM8/15/18
to gce-discussion
Hello Andrew,

Based on the debug information and error message that you've provided, it looks like the issue is with running ssh-keygen command on your Cygwin environment but not 'gcloud compute ssh'. Does the ssh-key command exist in the following path: 

 /cygdrive/c/WINDOWS/System32/OpenSSH/  (This path is extracted from your screenshot)

If so, can you try to run the following command to see if it generates the SSH keys?

/cygdrive/c/WINDOWS/System32/OpenSSH/ssh-keygen -vvv -t rsa -f /home/D/.ssh/google_compute_engine

That being said, I'd recommend posting this question on serverfault.com where you have access to a large community of enthusiasts and experts to share ideas with and get support from. In your question, include all redacted debug information so someone can help you.

Andrew Fu

unread,
Aug 15, 2018, 8:28:54 PM8/15/18
to gce-discussion
Hi Milad,

It looks like the ssh-keygen command exists. Here's another screenshot after running the command you mentioned: https://imgur.com/a/ogdQgcC

It hangs after the debug1 command. Not sure what is happening here.

I'll also look into posting this on serverfault.

Andrew
Reply all
Reply to author
Forward
0 new messages