[Openstack] Force use password authentication instead of public key when access VM

foss geek thefossgeek at gmail.com
Tue Nov 25 07:31:56 UTC 2014


Here is the way to enable ssh login to ubuntu user using username and
password. I am using it for testing purpose.

http://lmohanphy.livejournal.com/2496.html


-- 
Thanks & Regards
E-Mail: thefossgeek at gmail.com
IRC: neophy
Blog : http://lmohanphy.livejournal.com/



On Tue, Nov 25, 2014 at 12:32 PM, Du Jun <dj199008 at gmail.com> wrote:

> Hi all,
>
> 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:
>
> ssh -i ceilometer-dev.pem ubuntu at 10.254.1.3
>
> But, I don't feel very convenient to use public key every time. So, how to
> enable password login? My work steps are:
>
> 1, use public key to login my instance.
>
> ssh -i ceilometer-dev.pem ubuntu at 10.254.1.3
>
> 2, modify the sshd configure file(/etc/ssh/sshd_config) and set:
>
> PubkeyAuthentication yes
>
> ChallengeResponseAuthentication yes
>
> PasswordAuthentication yes
>
> 3, restart sshd service:
>
> /etc/init.d/ssh restart
>
> However, I still need public key to access instance and get failed when I
> attempt to login via password:
>
> vcap at ubuntu:/home$ ssh ubuntu at 10.254.1.3
> Permission denied (publickey).
>
> Is there anything I have missed? Any help will be appreciated!
>
>
> --
> Reagrds,
> Frank
>
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141125/bf018e4d/attachment.html>


More information about the Openstack mailing list