Skip to content

Added question how to add ssh key in faq.md #285

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ New password for default administrator (user-xxxxx):
### I added an additional disk with partitions. Why is it not getting detected?

As of Harvester v1.0.2, we no longer support adding additional partitioned disks, so be sure to delete all partitions first (e.g., using `fdisk`).

### How to add ssh key to the Harvester nodes using a modified config file ?

Option 1. Non Persistent (Temporary)
If the user just wants it to work in the runtime without rebooting then please add keys to /home/rancher/.ssh/authorized_keys and that can change the runtime setting (but it's not persistent between reboots).

Option 2. Persistent
You can modify /oem/99_custom.yaml (or 90_custom.yaml) to add authorized keys after login harvester through ssh.
After modification, you can reboot the node to see the difference.
Please refer https://rancher.github.io/elemental-toolkit/docs/reference/cloud_init/#stagesstage_idstep_nameauthorized_keys .