Revert "fix: don't modify ssh_config for ubuntu-cpc projects (LP:1968873)"

This change triggered a bug in cloud-init (see LP:1968873). cloud-init
does not recongnize sshd options set in /etc/ssh/sshd_config.d/ and
cloud-init modifies directly /etc/ssh/sshd_config which gets then
overwritten by settings from /etc/ssh/sshd_config.d/ .

This reverts commit b54d24ff33.
default-compat
Thomas Bechtold 2 years ago
parent 7a1b5f67dd
commit aa1be5eaaa

@ -1,5 +1,3 @@
#!/bin/bash #!/bin/bash
cat << EOF >> "/etc/ssh/sshd_config.d/10-cloudimg-settings.conf" sed -i "s|#PasswordAuthentication yes|PasswordAuthentication no|g" /etc/ssh/sshd_config
PasswordAuthentication no
EOF

Loading…
Cancel
Save