-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
SSH Error - handshake failed #63
Comments
It seems like it was fixed by removing the user and letting it use root instead. This puzzles me as it worked correctly with the user for me. |
Glad you found a way around it. I wonder why it took 5 seconds to log in via SSH? |
This is an error in
The variable
|
Feel free to send a PR? |
@cbrachem would you like to send a PR? |
/add label: support,good first issue,help wanted |
I am having the same issue on OSX |
happy to submit a PR for this @alexellis if it's still needed? |
I'm also getting this error, running on Ubuntu 20.04 on an RPi4 |
Was facing the same issue on Ubuntu 20.04 on an RPi4 specifying the private key path worked (make sure public key is in authorized_keys)
|
I have the same error, on Debian 10. It almos looks like the
SSH connections work:
Connecting with k3sup doesn't:
|
Same problem here on MacOS, using |
I was following this youtube tutorial https://www.youtube.com/watch?v=qsy1Gwa-J5o, same problem for me running on MacOS Big Sur 192.168.1.112 is a rpi running ubuntu
|
Thanks @alexellis for pointing out the instructions in readme that I somehow managed to skip over as I was scanning through it yesterday :-). This should work
|
There should be no need to build k3sup from source to use it. ssh-copy-id is in the documentation (Readme) as a required step. |
Right, I did try it without builld. |
I have an almost similar issue with @playground when I want to apply I have RPi running as a Server (master) node with multiple IP :
I used If I used
I am using NAT mode to connect Server and Slaves, I've already done But when I want to join the Slave nodes using
I already followed the readme documentation and the blog but still did not work for me. Do you have any guidance ? |
i think i had similar problems connecting to newer fedora hosts. |
@kareotoko @mgolisch have you run ssh-copy-id first? |
sure, otehrwise login using the ssh binary would not have worked either. here is an excerpt from /var/log/secure.log on the server: it shows the ssh binaries login which uses rsa with sha2-256 and then the denied login atemp from k3sup. It seems to be an underlying issue in the used golang crypto library that doesnt negotiate the signing algorythm with the server but instead allways uses sha1 for rsa keys. As already said the easy workaround is to not use an rsa keypair |
Hi guys, I just found |
This is it, this is what actually worked for me |
I have added some lines to the readme that might resolve some common issues: point users to the |
Closing since #359 was merged. |
This issue is still present in k3sup install;
Ssh login works normal, but in k3sup it doesn't, the same as the OP did report |
Have you ever tried: |
In addition to the key being RSA I had another issue: I was tunneling into the machine (let's call it a bastion) where I was running k3sup and I had agent forwarding on so when I ran |
As mentioned by @JGabrielGruber this issue is still present, I did the same things, keys generation and ssh-copy-id.
SSH login using OpenSSH client with the same key works without problems. |
Can confirm, still present with
Edit:
|
Hi @dreallday I cannot reproduce this and used the very same above recently on my own Raspberry Pis to install K3s using K3sup.
Feel free to try that out, then check the permissions of your .ssh folder on both ends, and the permissions of the files too, this could also prevent the above from working, but as I say, it works as expected for me. Alex |
any variation of the k3sup throws the same ssh error
this is a fresh install on ubuntu 20.04 with leader node running 22.04 |
I cannot reproduce this, so I don't know how to help you at this point. Can you open your own issue, because there's so much information lacking here? Perhaps we'll learn something from that. Alex |
/lock: Users should create their own issues for support. My GitHub Sponsors get priority. |
I tried adding a server today with the following command and the resulting output:
The strange thing is that when I copy-paste the SSH command it prints, it logs me in just fine. Of note is that when I SSH into the server, it takes ~5 seconds, while k3sup fails immediately.
Expected Behaviour
Successful SSH authentication, just as I get manually.
Current Behaviour
Near-immediate failure of the SSH command.
Possible Solution
Steps to Reproduce (for bugs)
Seems like normal workflow - environment issue?
Context
I am unable to create a new server.
Your Environment
Local
Server
The text was updated successfully, but these errors were encountered: