Is there a way to get the ssh keys to ssh into a n...
# general
c
Is there a way to get the ssh keys to ssh into a node provisioned by rancher when the GUI is down?
c
1. find the machine-state secret in the fleet-default namespace that matches the machine for the node (it’ll be NODENAME-machine-state) 2. Extract the base64-encoded .tar.gz from data.extractedConfig within the secret. 3. The tarball will contain the following files:
Copy code
drwx------ machine/1000      0 2025-08-11 21:45 /home/machine/.docker/machine/machines/bd-aws-1-pool1-hf7sg-w979j
-rw------- machine/1000   2358 2025-08-11 21:45 /home/machine/.docker/machine/machines/bd-aws-1-pool1-hf7sg-w979j/config.json
-rw------- machine/1000   1675 2025-08-11 21:45 /home/machine/.docker/machine/machines/bd-aws-1-pool1-hf7sg-w979j/id_rsa
-rw------- machine/1000    381 2025-08-11 21:45 /home/machine/.docker/machine/machines/bd-aws-1-pool1-hf7sg-w979j/id_rsa.pub
where the machines/x/ path is the node and machine name
c
Sweet! Thank you so much!