Configure Secure Practices

Instructions

  1. Reset the password for Ubuntu to a strong password.

    sudo passwd ubuntu
  2. Modify the ssh config file on the instance to allow password authentication.

    sudo nano /etc/ssh/sshd_config
  3. Change the ‘PasswordAuthentication’ directive from no to yes.

    sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
  4. Restart the sshd service to make the changes effective.

  5. Modify the cloud-init configuration so as to not lock user accounts upon instance creation from a custom AMI.