-
-
Notifications
You must be signed in to change notification settings - Fork 378
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 key format deprecated in Ubuntu 22.04 #377
Comments
Had the same problem with Ubuntu 22.04LTS. Switched to 20.04 and this solved the problem. |
I had the same issue. Seems Ubuntu 22.04 LTS openssh version deprecated RSA SHA-1 hash algorithm. Create a new key using
|
@phcco thanks for the workaround. What format of SSH key gets generated if you run |
/set title: SSH key format deprecated in Ubuntu 22.04 |
@rgee0 could you take a look into this? Is there an option for |
This seems to be a recognised wider issue. Dropping a link here for reference: hashicorp/packer#11733 (comment) I replicated the original issue report and then used the following steps to work around it without hacking the server config: Generate a new non-rsa key-pair (Link to some detail on ed25519)
Transfer this to the remote machine:
Run
I'll do a sweep of the doco and update where/if necessary |
I'm struggling to understand how this problem comes to light when running k3sup, but not simple ssh from the command line. How is k3sup initiating the ssh connection differently to how the Mac ssh command line initiates it? |
This is suggested as fixing the issue, and updates only the imported packages, which suggests there is something in the k3sup binary that is a factor. You'd have to dig into the crypto & sys packages to understand the actual issue. |
@alexellis Ubuntu 22.04 generates RSA by default, users must use explicitly Reading the release again seems they deprecated RSA SHA-1, but RSA with SHA-256/512 signature should still work. I presume the Go crypto library had/has a bug on this signature negotiation/verification, this would explain why the |
|
I ran into this yesterday whilst testing on Linode, the suggestion by @phcco was the solution that I went with: In the meantime, let's monitor the ssh library being used to see if this gets fixed or has a workaround that doesn't require logging into each server to change it, or any changes in the userdata at VM creation time? |
This may help with #377, but needs more testing Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
Thanks to everyone who participated in this thread. I'm now going to lock it. If you use K3sup, then we can speed up how quickly I can respond to issues here by becoming GitHub Sponsors. I maintain this in my "free time" on a voluntary basis, for free, for your benefit both at work and at home. |
Expected Behaviour
K3S is installed?
Current Behaviour
Brand new install of Ubuntu 22.04 LTS on a Raspberry Pi 4.
I have an SSH key on my MacBook
I've ssh-copy-id'd that over to ubuntu@pi
I've confirmed I can ssh on to the pi using
ssh ubuntu@pi
and it logs me straight in.Attempting to run
k3sup install --ip 192.168.10.1 --user ubuntu
with or without--ssh-key ~/.ssh/id_rsa
always results inOn the ubuntu side, I'm seeing the following logged in /var/log/auth.log
Are you a GitHub Sponsor (Yes/No?)
Possible Solution
Steps to Reproduce
curl -sLS https://get.k3sup.dev | sh
Context
I'm simply trying to install K3S
Your Environment
What Kubernetes distribution are you using?
Can't get that far.
What OS or type or VM are you using for your cluster? Where is it hosted? (for
k3sup install/join
):Ubuntu 22.04 LTS on a Raspberry Pi
Operating System and version (e.g. Linux, Windows, MacOS):
MacOS
"Be part of the solution"
Subject to approval, are you willing to work on a Pull Request for this issue or feature request?
Depends on language though - I have some development experience in a number of languages.
The text was updated successfully, but these errors were encountered: