-
Notifications
You must be signed in to change notification settings - Fork 53
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
Windows Terraform - SSH authentication failed #43
Comments
I don't know why Terraform don't use your SSH agent 🤔 ... Just to be sure, your k3s instance are instantiated with your public key ? Also, if I remember, SSH agent is only available with Pagent on Windows (cf. https://www.terraform.io/docs/language/resources/provisioners/connection.html#agent), so I don't understand why it works for other instances. I'm sorry, I never use Terraform on Windows directly (only on WSL), so I don't know how to resolve this issue :( |
I have try now with I am not sure if here should not be true
|
I have installed an ubuntu on my windows machine with WSL2. But i have the same error...
|
I don't see why it is not working. As I see, your are using the given example. Have you something like that when you use WSL ?
If yes, running the following commands can solve your problem ? git clone https://github.com/xunleii/terraform-module-k3s.git
cd terraform-module-k3s/examples/hcloud-k3s/
ssh-keygen -f hcloud.id_rsa
ssh-add hcloud.id_rsa
terraform init
terraform apply --var ssh_key="$(cat hcloud.id_rsa.pub)" Sorry if it tooks time to solve this problem, I never encounter this issue 😞 |
Thanks for your support I won't be back in the office until Monday then I will review your suggestion. |
First i have this error After that i have problems with the certificates
|
Thanks for your help. Firstly, good news, your cluster is provisioned. But in fact, this certificates error is really weird and should not occurs. Have you change something on any Can you try this inside the directory
I think, you will have the same certificates problem. If it doesn't work, can you compare the certificates inside the generated |
Hi, i have reset my wsl ubuntu container and also create a new clean project in hetzner cloud. Now the terraform setup is completed without a failure. No i have try to add the new cluster to my rancher, but it is always on pending.
|
I'm sorry for that, this behavior is "expected" but not documented. This is due to the k3s flag
EDIT: also, the |
Okay I see. I'm probably a born tester for this project. 🤪 Maybe you could publish another example that generates a normal cluster that can be used in Rachner without further ado - that would be really great. Of course I would like to test it again. |
All testers are welcome 😉 Also, I will try to add an example with a very simple cluster, on a less "exotic" provider (like GCP or AWS) |
Hi i try to create a k3s cluster on hetzner cloud with this terraform script, the script run in a timeout on connect the machine over ssh. I tried to manually create a server and assign the key so the key worked fine. But when I start the script, unfortunately it does not work where to look for the private key?
My windows commands to generate a key
The text was updated successfully, but these errors were encountered: