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 9a8d7a6e4d
.
intel-iotg-server-jammy
parent
d93cdfd8c5
commit
7ed77a5e64
@ -1,5 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat << EOF >> "/etc/ssh/sshd_config.d/10-cloudimg-settings.conf"
|
||||
PasswordAuthentication no
|
||||
EOF
|
||||
sed -i "s|#PasswordAuthentication yes|PasswordAuthentication no|g" /etc/ssh/sshd_config
|
||||
|
Loading…
Reference in new issue