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: [email protected] IRC: neophy Blog : http://lmohanphy.livejournal.com/ On Tue, Nov 25, 2014 at 12:32 PM, Du Jun <[email protected]> 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 [email protected] > > 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 [email protected] > > 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@ubuntu:/home$ ssh [email protected] > 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 : [email protected] > Unsubscribe : > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
