Instructions
Reset the password for Ubuntu to a strong password.
passwd ubuntu
Modify the ssh config file on the instance to allow password authentication.
sudo nano /etc/ssh/sshd_config
Change the ‘PasswordAuthentication’ directive from no to yes.
Restart the sshd service to make the changes effective.
sudo /etc/init.d/ssh restart
Modify the cloud-init configuration so as to not lock user accounts upon instance creation from a custom AMI.
sed -i 's/lock_passwd: True/lock_passwd: False/' /etc/cloud/cloud.cfg
Add Comment