...
Reset the password for Ubuntu to a strong password.
Code Block language bash sudo passwd ubuntu
Modify the ssh config file on the instance to allow password authentication.
Code Block sudo nano /etc/ssh/sshd_config
Change the ‘PasswordAuthentication’ directive from no to yes.
Code Block language bash sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
Restart the sshd service to make the changes effective.
Code Block language bash 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.
Code Block language bash sudo sed -i 's/lock_passwd: True/lock_passwd: False/' /etc/cloud/cloud.cfg
Info |
---|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...