- 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
Verified that it works via:
- test image build for EC2 for Focal ccee60 --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- focal-sru- validation} ]'" ation=no ubuntu@3.68.190.249
- launching a instance with user-data to set password authentication: "aws ec2 run-instances --image-id ami-00ba68cfdb7
- 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 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-
# sshd -T|grep passwordauth ication yes
passwordauthent