-
Notifications
You must be signed in to change notification settings - Fork 590
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 certificates have stopped working in v1.3.11 #2941
Comments
We ran into this as well, but only with Ubuntu 20.04 nodes not Ubuntu 18.04 nodes. I'm using RKE v1.3.10. |
@stefanlasiewski - It's interesting that the server side makes a difference - as Could it be related to golang/go/issues/37278? |
We are experiencing a similar issue -- I can confirm that the root cause is a change in the crypto/ssh library -- certificate-based login (with ssh-rsa certs) works fine for versions of crypto/ssh before commit So what makes this an RKE issue and not an ssh issue? I suspect, but do not know for certain, that this is a usage issue, mostly because that's the default assumption to make. However, x/crypto is (somewhat unbelievably) still in version 0, so it is deliberately advertising that it is not yet stable. I simply don't have the time to establish confidently where the issue truly lies, especially considering the apparent lack of documentation of x/crypto/ssh. |
I had luck switching from an RSA key to a ed25519 key (After talking to Rancher support). The upstream Go issue suggests that Go support for RSA keys is broken: golang/go#49952 Also, I notice this issue is discussing certs while my problem is with keys. However, I suspect the underlying cause is the same, and any non-RSA key should work. |
This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions. |
@stefanfritsch @Birddude1230 With rke v1.3.14, SSH now works for me. Is it working for you also? |
@stefanlasiewski Can't confirm for v1.3.15. With an ed25519 private key (ca-key is always rsa) I get:
with rsa:
In both cases the login with |
@stefanfritsch You know what, I was wrong. it's not working for me either. |
This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions. |
This issue is still happening. Posting a message to keep this issue open. |
@stefanlasiewski @stefanfritsch , could you check if adding the following settings to
Context: #2907 (comment) |
This had no effect for me. Note that on Ubuntu 20.04, |
I use ssh certificates to access nodes and this has worked fine for years until at least v1.3.7 but with v1.3.11 (I haven't used the versions in between) it is broken:
The same node works if I add the key to
authorized_keys
Steps to Reproduce:
authorized_keys
: WorksOutput
ssh
Login works
v1.3.7
Everything's fine
v1.3.11
Nothing works
v1.3.11 with the pubkey on one of the hosts
Note how the node with the key in
authorized_keys
now workssshd
System info
RKE version: v1.3.11
Operating system and kernel: (
cat /etc/os-release
,uname -r
preferred)Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO): bare-metal
cluster.yml file:
SURE-4777
The text was updated successfully, but these errors were encountered: