Update Post Installation SSH Password Disable Steps#1074
Open
alexfornuto wants to merge 4 commits into
Open
Conversation
The instructions for disabling SSH password auth were incorrect in a few different ways; there is no `sshd_config` file, `kubectl` isn't in the `root` user's path, etc etc... This is what worked for me, but I reckon someone at SUSE should perform a more holistic review of these pages. Signed-off-by: Alex Fornuto <[email protected]>
Signed-off-by: Alex Fornuto <[email protected]>
votdev
reviewed
Jul 13, 2026
|
|
||
| ```sh | ||
| cat <<EOF | kubectl apply -f - | ||
| cat <<EOF | sudo env "PATH=$PATH" /var/lib/rancher/rke2/bin/kubectl --kubeconfig=/etc/rancher/rke2/rke2.yaml apply -f - |
Member
There was a problem hiding this comment.
Why not simply use sudo su to become root, then you can execute kubectl without issues.
Please keep the previous text.
Suggested change
| cat <<EOF | sudo env "PATH=$PATH" /var/lib/rancher/rke2/bin/kubectl --kubeconfig=/etc/rancher/rke2/rke2.yaml apply -f - | |
| cat <<EOF | kubectl apply -f - |
Author
There was a problem hiding this comment.
In my testing, kubectl wasn't in the root user's PATH.
Vicente-Cheng
left a comment
Contributor
There was a problem hiding this comment.
overall lgtm, just some nit
Contributor
|
hi @alexfornuto, |
Signed-off-by: Alex Fornuto <[email protected]>
Signed-off-by: Alex Fornuto <[email protected]>
Author
Comments reviewed, changes applied or comments addressed. Feel free to make additional changes required directly to the PR itself. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
The instructions for disabling SSH password auth were incorrect in a few different ways; there is no
sshd_configfile,kubectlisn't in therootuser's path, etc etc...Solution:
This is what worked for me, but I reckon someone at SUSE should perform a more holistic review of these pages.
Related Issue(s):
Issue harvester/harvester#11126
Test plan:
Do the steps, dawg.
Additional documentation or context