ssh_pwauth sets the value in sshd_config for the password authentication
This implementation tries to avoid touching the file if cloudinit
request for what is already the default value.
Sponsored by: OVHCloud
Differential D49875
nuageinint: implement ssh_pwauth Authored by bapt on Apr 17 2025, 4:06 PM. Tags None Referenced Files
Details ssh_pwauth sets the value in sshd_config for the password authentication Sponsored by: OVHCloud
Diff Detail
Event TimelineComment Actions Pedantically, to be on the same page in sshd_config(5):
# ssh_pwauth: true
printf "#PasswordAuthentication no # Should be ignored\n" > etc/ssh/sshd_config
printf "PasswordAuthentication no # Should change\n" >> etc/ssh/sshd_config
atf_check -o empty -e empty /usr/libexec/nuageinit "${PWD}"/media/nuageinit nocloud
atf_check -o match:"^#PasswordAuthentication no # Should be ignored$" \
-o match:"^PasswordAuthentication yes$" cat etc/ssh/sshd_configRegardless, the implementation seems correct.
| ||||||||||||||||||||||||||||||||||||||