# How to set root password for guest OS image without using SSH Key?

**URL:** <https://forum.opennebula.io/t/how-to-set-root-password-for-guest-os-image-without-using-ssh-key/3960>\
**Category:** Product Support\
**Created:** [March 13, 2017, 1:25pm UTC](https://forum.opennebula.io/t/how-to-set-root-password-for-guest-os-image-without-using-ssh-key/3960 "2017-03-13T13:25:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassan.draga](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hassan.draga/32/5084_2.png) [@hassan.draga](https://forum.opennebula.io/u/hassan.draga)\
**Post date:** [March 13, 2017, 1:25pm UTC](https://forum.opennebula.io/t/how-to-set-root-password-for-guest-os-image-without-using-ssh-key/3960/1 "2017-03-13T13:25:13Z")

</div>

The only why to access VM imported from MarketPlace is with the Public SSH Key.

So, **is there any way to set a initial root password for Linux images without using SSH Key ?** (_USERNAME=, PASSWORD=, Work only for Windows images_).

---

<div class="post-metadata">

**Author:** ![vynt-kenshiro](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@vynt-kenshiro](https://forum.opennebula.io/u/vynt-kenshiro)\
**Post date:** [March 14, 2017, 9:49am UTC](https://forum.opennebula.io/t/how-to-set-root-password-for-guest-os-image-without-using-ssh-key/3960/2 "2017-03-14T09:49:05Z")

</div>

On control panel \> Tempalte \> your template \> Update \> context \> User input.

![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/b/b8251a9a9b82470854b26cb885f42664ff605579.png)

---

<div class="post-metadata">

**Author:** ![hassan.draga](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hassan.draga/32/5084_2.png) [@hassan.draga](https://forum.opennebula.io/u/hassan.draga)\
**Post date:** [September 21, 2017, 7:07pm UTC](https://forum.opennebula.io/t/how-to-set-root-password-for-guest-os-image-without-using-ssh-key/3960/3 "2017-09-21T19:07:30Z")

</div>

thank you for your replay, yes its work, there also another way is with the starter script with this one line command : `echo -e "123456\n123456" | passwd root`

Thank you

---

<div class="post-metadata">

**Author:** ![nitin](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nitin](https://forum.opennebula.io/u/nitin)\
**Post date:** [June 30, 2018, 5:46am UTC](https://forum.opennebula.io/t/how-to-set-root-password-for-guest-os-image-without-using-ssh-key/3960/4 "2018-06-30T05:46:45Z")

</div>

dear sir,

I have not run my kvm (Centos). Plz help me. how to find access…
