Enable SSH password authentication
#cloud-config
users:
- name: ubuntu
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
ssh_pwauth: True ## This line enables ssh password authentication
chpasswd:
list: |
ubuntu:ubuntu ## Overriding default username, password
expire: True ## Forcing user to change the default password at first login
Last updated
Was this helpful?