-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Cloud- Unable SSH into instance via cloud shell. #21
Comments
commenting out a line to see if that fixes it |
That didn't work. Did find this new error though Invalid key. Required format: username@example.com or google-ssh {"userName":"username@example.com","expireOn":""} |
Alright, it looks like when you press the "add ssh key" button on the VM instance, google attempts to add keys BUT this kills the unbuntu user and then you lose access to your instance. Looking into how to use OS login instead. |
I know we chatted about this on discord - but do you have the error you mentioned in the first comment? Was it from terraform or in the gcp web console? |
It is caused by something that terraform is configuring. Because of the first issue, the second issue is happening. |
I am still running it down in my free time because otherwise the script works great! |
To recap, the malformed SSH key is fixed in 6242d2e google cloud ssh keys work with or without a key name. e.g.: I've added logic in terraform to add To re-iterate - a missing key name would not have prevented SSH access. Going to close this as solved. |
Unable to ssh into instance via Google Cloud. This may be because the ssh-keys metadata is throwing out wacky errors in gcp-instance.tf file.
The text was updated successfully, but these errors were encountered: