fix(k3s): scp kubeconfig as ubuntu user on kyber - #1740
Conversation
Galactica's local user is shunkakinoki, kyber's is ubuntu. The authorized key landed in /home/ubuntu/.ssh/authorized_keys (correct - that's the home-manager target user on kyber), but the client scp defaulted to galactica's local username and got publickey denied. Hardcode REMOTE_HOST to ubuntu@... so the connection actually lands on the user that owns the authorized_keys entry.
|
|
You do not have enough credits to review this pull request. Please purchase more credits to continue. |
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe pull request updates the k3s client activation script to include an SSH username in the remote host address, changing ChangesK3s Client SSH Configuration
Possibly related PRs
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Mesa DescriptionTL;DRFixed K3s client configuration issue where What changed?
Description generated by Mesa. Update settings |
Summary
Galactica's local user is
shunkakinoki, kyber's isubuntu. After #1738 / #1739 landed galactica's pubkey in kyber's~ubuntu/.ssh/authorized_keys(correct - that's the home-manager target user on kyber), butactivate-client.shstill scp'd as galactica's local username and gotPermission denied (publickey).Verified end-to-end on galactica with this branch:
bash config/k3s/activate-client.shnow logskubeconfig synced from ubuntu@kyber.tail950b36.ts.netand writes the file.There's a separate unrelated issue with the kubeconfig still containing
https://127.0.0.1:6443(server-sidesedrewrite inactivate.shdoesn't seem to have run) and a stale TLS cert that needs regen on kyber - both deferred from this PR per request.Test plan
shellspec spec/activate_k3s_client_spec.sh-> 10 examples, 0 failuresshellcheck config/k3s/activate-client.shcleanSummary by cubic
Fix k3s client kubeconfig sync by scp'ing as ubuntu@kyber.tail950b36.ts.net. This matches the authorized_keys user and resolves Permission denied (publickey).
activate-client.sh.Written for commit fa61ef6. Summary will update on new commits.