Lost ssh-key in rancheros


#1

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


#2

Start RancherOS

Grub
Autologin on tty1 and ttyS0

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

Now i can add the new key.