blob: 28d97fdde21e908de1228b06cc9068af1ddf0c96 [file] [log] [blame]
#cloud-config
debug: True
ssh_pwauth: True
disable_root: false
chpasswd:
list: |
root:r00tme
expire: False
output: {all: '| tee -a /var/log/cloud-init-output.log'}
runcmd:
- sed -i'.orig' -e's/\#PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
- service sshd restart
- sed -i'.orig' -e's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config