Can't login after install with cloud-config


#1

I am using this config:

#cloud-config
hostname: darin-meltzner
rancher:
network:
dns:
nameservers:
- 192.168.111.12
search:
- example.com
interfaces:
eth*:
dhcp: true
console: debian
ssh_authorized_keys:

the vm is created.
I try to connect using: ssh -i ~/.ssh/id_rsa.pub rancher@
but it requires a password (which I do not know and did not set…)

I am not sure what to try anymore :confused: any ideas?

Thank you!


#2

~/.ssh/id_rsa.pub sounds like your public key, you will need to login using your private key (probably ~/.ssh/id_rsa).

I can’t determine if the layout of the file is correct, but you can double-check with https://rancher.com/docs/os/v1.x/en/installation/configuration/ssh-keys/


#3

Thank you, I did try to use the id_rsa as well and the layout seems right :confused:
Anything else I can check?


#4

I wonder if maybe this: Rancheros PXE boot cloud-config.yml not executed
is still an issue?