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.
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.