rancher / k3os

Purpose-built OS for Kubernetes, fully managed by Kubernetes.
https://k3os.io
Apache License 2.0
3.5k stars 397 forks source link

Installer writes out wrong field (sshAuthorizedKeys vs ssh_authorized_keys) #739

Closed daurnimator closed 2 years ago

daurnimator commented 3 years ago

Version (k3OS / kernel)

k3os version v0.20.7-k3s1r0 5.4.0-73-generic rancher/k3os#82 SMP Thu Jun 3 02:29:43 UTC 2021

Architecture

x86_64

Describe the bug

after installing, my config had sshAuthorizedKeys rather than ssh_authorized_keys

To Reproduce

Expected behavior

Actual behavior

Additional context

https://github.com/rancher/k3os/blob/4738bb8f7c4bfcb22656e536077d71bd30c1138f/pkg/config/config.go#L44

dweomer commented 3 years ago

The config parsing code should be treating these as equivalent. Are you able to ssh using the corresponding private keys?

daurnimator commented 3 years ago

The config parsing code should be treating these as equivalent. Are you able to ssh using the corresponding private keys?

I wasn't able to.... I tweaked several things (including fixing the config file) to try and fix it. I'm not entirely sure which fix was the true one.