alexz | 5b79514 | 2018-02-13 15:59:28 +0100 | [diff] [blame] | 1 | #cloud-config |
2 | debug: True | ||||
3 | ssh_pwauth: True | ||||
4 | disable_root: false | ||||
5 | chpasswd: | ||||
6 | list: | | ||||
7 | root:ho5uo7Uome5d | ||||
8 | # cloud-user:ho5uo7Uome5d | ||||
9 | expire: False | ||||
10 | output: {all: '| tee -a /var/log/cloud-init-output.log'} | ||||
11 | runcmd: | ||||
12 | - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config | ||||
13 | - service sshd restart |