#cloud-config ssh_pwauth: true disable_root: false chpasswd: { list: ["root:toor"], expire: false } runcmd: - printf '%s\n' 'PermitRootLogin yes' >> /etc/ssh/sshd_config - systemctl restart ssh.service