Lost ssh-key in rancheros

Hello, i have lost my ssh-key for rancheros.

How can i add a new ssh-key in my rancheros system?

https://rancher.com/docs/os/v1.1/en/running-rancheros/server/install-to-disk/

This will not solved my probleme, because i have no access to my rancheros-system.

Where can i find a how to?

Greetz

Start RancherOS

Grub
Autologin on tty1 and ttyS0

sudo su
vi /home/rancher/.ssh/authorized_keys
reboot

Now i can add the new key.

1 Like