Skip to content
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

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all 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
12 changes: 11 additions & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,14 @@ 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`).
As of Harvester v1.0.2, adding additional partitioned disks is no longer supported, be sure to delete all partitions first (e.g., using `fdisk`).

### How to add ssh authorized keys to a Harvester node using a modified config file?

Option 1. Non Persistent (Temporary)
To dynamically add users in the runtime without rebooting, add ssh authorized keys to /home/rancher/.ssh/authorized_keys. These changes are not persistent between reboots.

Option 2. Persistent
After you ssh login to Harvester, add ssh authorized keys to your /oem/99_custom.yaml or 90_custom.yaml. These changes are persistent between reboots.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought in the harvester cluster, we only have /oem/90_custom.yaml.
Maybe we could remove the /oem/99_custom.yaml?

After you modify your cloud-init script, reboot the node to see the changes take effect.
See [Cloud-init support - stages.STAGE_ID.STEP_NAME.authorized_keys](https://rancher.github.io/elemental-toolkit/docs/reference/cloud_init/#stagesstage_idstep_nameauthorized_keys) for details on adding ssh authorized keys to a config file.