Linux – Cloud-init, note-to-self

Just a reminder for myself.

Can use in Cloud-init to set password for the root account.

#cloud-config
ssh_pwauth: true
users:
  - name: root
    lock_passwd: false
    hashed_passwd: HASHED_PASSWORD
    ssh_authorized_keys:
      - ssh-rsa <key>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.