Verified that it works via:
- test image build for EC2 - launching a instance with user-data to set password authentication: "aws ec2 run-instances --image-id ami-01046735e1a43b710 --instance-type m6a.large --key-name toabctl --user-data file:///home/tom/tmp/cloud-config --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=toabctl-jammy-sru-validation}]'" - login with password: ssh -o PubkeyAuthentication=no ubuntu@3.66.190.126
Ordering looks good now:
# ls -al /etc/ssh/sshd_config.d/ total 16 drwxr-xr-x 2 root root 4096 Feb 1 14:23 . drwxr-xr-x 4 root root 4096 Feb 1 14:23 .. -rw------- 1 root root 27 Feb 1 14:23 50-cloud-init.conf -rw-r--r-- 1 root root 26 Feb 1 13:44 60-cloudimg-settings.conf
# sshd -T|grep passwordauth passwordauthentication yes
Verified that it works via:
- test image build for EC2 43b710 --instance-type m6a.large --key-name toabctl --user-data file:// /home/tom/ tmp/cloud- config --tag-specifica tions 'ResourceType= instance, Tags=[{ Key=Name, Value=toabctl- jammy-sru- validation} ]'" ation=no ubuntu@3.66.190.126
- launching a instance with user-data to set password authentication: "aws ec2 run-instances --image-id ami-01046735e1a
- login with password: ssh -o PubkeyAuthentic
Ordering looks good now:
# ls -al /etc/ssh/ sshd_config. d/ settings. conf
total 16
drwxr-xr-x 2 root root 4096 Feb 1 14:23 .
drwxr-xr-x 4 root root 4096 Feb 1 14:23 ..
-rw------- 1 root root 27 Feb 1 14:23 50-cloud-init.conf
-rw-r--r-- 1 root root 26 Feb 1 13:44 60-cloudimg-
# sshd -T|grep passwordauth ication yes
passwordauthent