<div dir="ltr">I've downloaded this image from marketplace, Also tried debian and the shs key's doesn't work. <div><br></div><div>Can't log to my VM's running on linux distros :( (windows with first boot ask for admin password). Any idea how to do this without changing anything in image ? (my os image is rbd)</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-02 17:10 GMT+02:00 Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Leszek,<div><br></div><div>I don't understand either why it's not working for you then, the only explanation is that the image is not correct. Could you try with another image? I think that would the easiest option.</div>
<div><br></div><div>Another option would be to open that image and replace the root password manually. To do so, this is what I usually do:</div><div><br></div><div>1) figure out the start of the partition:</div><div>$ OFFSET=$(parted /path/to/image 'unit B print' 2>/dev/null | awk '{if($1=="1"){print $2}}'|tr -cd 0-9)</div>
<div><br></div><div>2) mount the image:</div><div>$ mkdir -p mnt</div><div>$ sudo mount -o loop,offset=$OFFSET mnt</div><div><br></div><div>3) generate the hashed password</div><div><div>$ openssl passwd -1 <newpass></div>
<div>$1$pkKjWlHt$2Qe6M8C6hDJ.XOG2qAmXs.</div></div><div><br></div><div>4) edit mnt/etc/shadow and replace replace the root:......: part of that file with the new generated password, like such:</div><div>root:$1$pkKjWlHt$2Qe6M8C6hDJ.XOG2qAmXs.:16041:0:99999:7:::</div>
<div><br></div><div>5) unmount the image: sudo umount mnt</div><div><br></div><div>although to be honest another image might be a better bet. Did you get this one from the marketplace?</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 2, 2014 at 4:33 PM, Leszek Master <span dir="ltr"><<a href="mailto:keksior@gmail.com" target="_blank">keksior@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">i'm trying to ssh from node-02 using leni account (leni@node-02) as in the ssh-key added to template. And i've got password prompt, the same is when i use <span style="font-family:arial,sans-serif;font-size:13px">ssh root@</span><span style="font-family:arial,sans-serif;font-size:13px">172.100.0.109 - password prompt. It should but it isn't :(</span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-02 16:29 GMT+02:00 Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span>:<div><div>
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">That should work. Just so we're clear, you're trying to ssh from the oneadmin account in node02 to the *root* account of the VM:</div><div class="gmail_extra"><br></div><div class="gmail_extra">
<span style="font-family:arial,sans-serif;font-size:13px">oneadmin@node-02:~ $ ssh root@</span><span style="font-family:arial,sans-serif;font-size:13px">172.100.0.109</span><br></div><div class="gmail_extra"><div><br></div>
<div>Do you even get the password prompt?</div><div><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</div></div></div>
</blockquote></div></div></div><br></div>
<br></div></div><div class="">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></div></blockquote></div><br><br clear="all"><div class=""><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>
</div></div>
</blockquote></div><br></div>