Activate password authentication on Ubuntu VMs on Amazon EC2


ssh -i [path to private-key-file] [target IP]

# In the host shell

sudo adduser [username]     # Add a new user; this command also prompts for setting the password

sudo adduser admin            # Add this user to the admin group (to sudoers)

sudo vi /etc/ssh/sshd_config

# In the above file set "PasswordAuthentication" to "yes".

sudo reload ssh

The VM should now be ready for password based ssh authentication.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

44,549 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>