Coder Social home page Coder Social logo

Comments (7)

wibbene avatar wibbene commented on May 24, 2024

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.

commenting out a line to see if that fixes it

from cloudblock.

wibbene avatar wibbene commented on May 24, 2024

That didn't work. Did find this new error though

Invalid key. Required format: [email protected] or google-ssh {"userName":"[email protected]","expireOn":""}

from cloudblock.

wibbene avatar wibbene commented on May 24, 2024

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.

from cloudblock.

chadgeary avatar chadgeary commented on May 24, 2024

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?

from cloudblock.

wibbene avatar wibbene commented on May 24, 2024

It is caused by something that terraform is configuring. Because of the first issue, the second issue is happening.

from cloudblock.

wibbene avatar wibbene commented on May 24, 2024

I am still running it down in my free time because otherwise the script works great!

from cloudblock.

chadgeary avatar chadgeary commented on May 24, 2024

To recap, the malformed SSH key is fixed in 6242d2e

google cloud ssh keys work with or without a key name. e.g.: ssh-rsa some_key_data my_key_name or ssh-rsa some_key_data) BUT if the key name is omitted the google cloud web console complains.

I've added logic in terraform to add ubuntu as the key name if the user does not supply a key name in gcp.tfvars, which should clear that error up.

To re-iterate - a missing key name would not have prevented SSH access. Going to close this as solved.

from cloudblock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.