mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 04:37:29 +00:00
The cloud-init bug (see LP:1968873) got fixed now so using a sshd config snippet should work now. This partly reverts commit aa1be5eaaa1fdbb4c31104cc49e54b15f66c3343 but uses now 60-cloudimg-settings.conf instead of 10-cloudimg-settings.conf .
9 lines
267 B
Bash
Executable File
9 lines
267 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# NOTE: the file number needs to be **higher** than the one
|
|
# cloud-init writes (cloud-init uses 50-cloud-init.conf) so
|
|
# the cloud-init file takes precedence
|
|
cat << EOF >> "/etc/ssh/sshd_config.d/60-cloudimg-settings.conf"
|
|
PasswordAuthentication no
|
|
EOF
|