Comment 11 for bug 1968873

Revision history for this message
Gauthier Jolly (gjolly) wrote (last edit ):

Please don't SRU! It breaks the way cloud-init sets password auth:

At least on Azure: if someone sets --authentication-type password, cloud-init does the following:

2022-07-07 15:40:54,037 - util.py[DEBUG]: Read 3254 bytes from /etc/ssh/sshd_config
2022-07-07 15:40:54,037 - ssh_util.py[DEBUG]: line 123: option PasswordAuthentication added with yes

And this option is overwritten by this new file "/etc/ssh/sshd_config.d/10-cloudimg-settings.conf", so users can't SSH into their VM!

I think we need this bug to get fixed in cloud-init before adding this to cloud-images.