<div dir="ltr"><div><br></div><div>Here is the way to enable ssh login to ubuntu user using username and password. I am using it for testing purpose.</div><div><br></div><a href="http://lmohanphy.livejournal.com/2496.html">http://lmohanphy.livejournal.com/2496.html</a><div><br><div><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">Thanks & Regards</font></span><div><div><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">E-Mail: <a href="mailto:thefossgeek@gmail.com" target="_blank">thefossgeek@gmail.com</a></font></span></div><div><span style="color:rgb(57,51,24);line-height:20px;background-color:rgb(252,250,243)"><font size="4" face="georgia, serif">IRC: neophy</font></span></div><div><span style="background-color:rgb(252,250,243)"><font color="#393318" size="4" face="georgia, serif"><span style="line-height:20px">Blog : <a href="http://lmohanphy.livejournal.com/" target="_blank">http://lmohanphy.livejournal.com/</a></span></font></span></div></div><div><span style="background-color:rgb(252,250,243)"><font color="#393318" size="4" face="georgia, serif"><br></font></span></div></div></div></div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 12:32 PM, Du Jun <span dir="ltr"><<a href="mailto:dj199008@gmail.com" target="_blank">dj199008@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>I have imported a key pair to nova and used an ubuntu cloud-image(qcow2 file format) to boot an instance. Now, I can access the instance via public key like:<br><br><span style="color:rgb(255,0,0)">ssh -i ceilometer-dev.pem <a href="mailto:ubuntu@10.254.1.3" target="_blank">ubuntu@10.254.1.3</a></span><br><br></div>But, I don't feel very convenient to use public key every time. So, how to enable password login? My work steps are:<br><br></div>1, use public key to login my instance.<br><br><span style="color:rgb(255,0,0)">ssh -i ceilometer-dev.pem <a href="mailto:ubuntu@10.254.1.3" target="_blank">ubuntu@10.254.1.3</a><br><br></span></div><span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)">2, modify the s<font>shd configure f</font>ile(/etc/ssh/sshd_config)</span></span> <span style="color:rgb(0,0,0)"><font>and set:</font></span><br><br>PubkeyAuthentication yes<br><br>ChallengeResponseAuthentication yes<br><br>PasswordAuthentication yes<br><br></div><div><font><span style="color:rgb(0,0,0)">3, restart sshd service:</span></font><br><br><font><span style="color:rgb(255,0,0)">/etc/init.d/ssh restart</span></font><br><br></div><div><font>However, I still need public key to access instance and get failed when I attempt to login via password:</font><br><br><font><span style="color:rgb(255,0,0)">vcap@ubuntu:/home$ ssh <a href="mailto:ubuntu@10.254.1.3" target="_blank">ubuntu@10.254.1.3</a><br>Permission denied (publickey).</span></font><br><br></div><div>Is there anything I have missed? Any help will be appreciated!<br><br><br>--<br></div><div>Reagrds,<br></div><div>Frank<br></div><span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)"></span></span><div><span style="color:rgb(255,0,0)"><br><br></span><div> <br></div></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div><span style="background-color:rgb(252,250,243)"><br></span></div><div><br></div></div></div></div>
</div></div></div></div>