# Can't login after install with cloud-config

**URL:** <https://forums.suse.com/t/cant-login-after-install-with-cloud-config/13158>\
**Category:** RancherOS\
**Created:** [January 30, 2019, 12:41pm UTC](https://forums.suse.com/t/cant-login-after-install-with-cloud-config/13158 "2019-01-30T12:41:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![borod108](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@borod108](https://forums.suse.com/u/borod108)\
**Post date:** [January 30, 2019, 12:41pm UTC](https://forums.suse.com/t/cant-login-after-install-with-cloud-config/13158/1 "2019-01-30T12:41:02Z")

</div>

I am using this config:

#cloud-config  
hostname: darin-meltzner  
rancher:  
network:  
dns:  
nameservers:  
- 192.168.111.12  
search:  
- [example.com](http://example.com)  
interfaces:  
eth\*:  
dhcp: true  
console: debian  
ssh\_authorized\_keys:

- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAA…E+Sd9hPFte1iLf7yJaKQ== [admin@localhost.localdomain.net](mailto:admin@localhost.localdomain.net)

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 😕 any ideas?

Thank you!

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [January 30, 2019, 1:08pm UTC](https://forums.suse.com/t/cant-login-after-install-with-cloud-config/13158/2 "2019-01-30T13:08:12Z")

</div>

`~/.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/](https://rancher.com/docs/os/v1.x/en/installation/configuration/ssh-keys/)

---

<div class="post-metadata">

**Author:** ![borod108](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@borod108](https://forums.suse.com/u/borod108)\
**Post date:** [January 30, 2019, 1:15pm UTC](https://forums.suse.com/t/cant-login-after-install-with-cloud-config/13158/3 "2019-01-30T13:15:55Z")

</div>

Thank you, I did try to use the id\_rsa as well and the layout seems right 😕  
Anything else I can check?

---

<div class="post-metadata">

**Author:** ![borod108](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@borod108](https://forums.suse.com/u/borod108)\
**Post date:** [January 30, 2019, 1:21pm UTC](https://forums.suse.com/t/cant-login-after-install-with-cloud-config/13158/4 "2019-01-30T13:21:39Z")

</div>

I wonder if maybe this: [Rancheros PXE boot cloud-config.yml not executed](http://forums.suse.com/t/rancheros-pxe-boot-cloud-config-yml-not-executed/8075)  
is still an issue?
