mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 03:11:12 +00:00
fix: don't modify ssh_config for ubuntu-cpc projects (LP:1968873)
Modifying directly /etc/ssh/sshd_config creates "problems" when upgrading eg. from Focal to Jammy because the upgrade will ask the user what to do with the modified config. To avoid that, put the custom configuration into /etc/ssh/sshd_config.d/ so the upgrade of openssh-server can just replace /etc/ssh/sshd_config without asking the user. (cherry picked from commit b54d24ff3310f7ace00ab08e0dacfdc89e026f1c)
This commit is contained in:
parent
2203488f7e
commit
84c182ac44
@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
sed -i "s|#PasswordAuthentication yes|PasswordAuthentication no|g" /etc/ssh/sshd_config
|
||||
cat << EOF >> "/etc/ssh/sshd_config.d/10-cloudimg-settings.conf"
|
||||
PasswordAuthentication no
|
||||
EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user