Comment 9 for bug 2049860

Revision history for this message
Thomas Bechtold (toabctl) wrote :

Verified that it works via:

- test image build for EC2 for Focal
- launching a instance with user-data to set password authentication: "aws ec2 run-instances --image-id ami-00ba68cfdb7ccee60 --instance-type m6a.large --key-name toabctl --user-data file:///home/tom/tmp/cloud-config --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=toabctl-focal-sru-validation}]'"
- login with password: ssh -o PubkeyAuthentication=no ubuntu@3.68.190.249

Ordering looks good now:

# ls -al /etc/ssh/sshd_config.d/
total 16
drwxr-xr-x 2 root root 4096 Feb 8 11:19 .
drwxr-xr-x 4 root root 4096 Feb 8 11:19 ..
-rw------- 1 root root 27 Feb 8 11:19 50-cloud-init.conf
-rw-r--r-- 1 root root 26 Feb 8 10:47 60-cloudimg-settings.conf

# sshd -T|grep passwordauth
passwordauthentication yes