Comments (7)
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.
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.
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.
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.
It is caused by something that terraform is configuring. Because of the first issue, the second issue is happening.
from cloudblock.
I am still running it down in my free time because otherwise the script works great!
from cloudblock.
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)
- Ubuntu 22 Support HOT 2
- apt-key deprecated, ansible fails installing docker
- Exponential (GCP) CloudStorage growth
- Azure: ph-vault-disk keeps wanting to update the access_policy HOT 1
- IP is leaked HOT 3
- Azure pb is failing to get ph_password from Vault HOT 2
- Create a dictionary file for DOH_PROVIDER HOT 1
- Another issue with Get ph_password from Azure Vault Secret - The error was: KeyError: 'credential' HOT 11
- azurerm_key_vault_access_policy Error on new pull HOT 3
- New/Same Issue with Azure Deployment HOT 5
- AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' | Azure HOT 8
- Site-to-Site Wireguard? HOT 1
- Lots of key_permissions errors on fresh clone - Azure HOT 2
- Upgrade to Python 3.8 HOT 1
- Support for DoT / DoH directly with Android 9+ HOT 2
- systemd-resolve --status no longer exists in Ubuntu 22.04, replace w/ resolvectl HOT 2
- Question on DNS HOT 1
- Error running ansible in Ubuntu linux container (LXC) in proxmox HOT 1
- Errors in Azure deployment HOT 1
- DigitalOcean: Error creating SSH key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudblock.