#cloud-config ssh_pwauth: True users: - name: root ssh_pwauth: True chpasswd: list: | root:Ex!r1269@ expire: False apt_mirror: http://mirror.iranserver.com/ubuntu/ disable_root: false package_update: true packages: - qemu-guest-agent runcmd: - [ sh, -c, "echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config " ] - systemctl restart sshd.service - systemctl start qemu-guest-agent - sudo systemctl enable qemu-guest-agent