blob: 28d97fdde21e908de1228b06cc9068af1ddf0c96 [file] [log] [blame]
Vasyl Saienko9740a4f2023-09-22 14:48:29 +00001#cloud-config
2debug: True
3ssh_pwauth: True
4disable_root: false
5chpasswd:
6 list: |
7 root:r00tme
8 expire: False
9output: {all: '| tee -a /var/log/cloud-init-output.log'}
10runcmd:
11 - sed -i'.orig' -e's/\#PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
12 - service sshd restart
13 - sed -i'.orig' -e's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config