How can I get cloud-init password settings to work on Amazon Linux 2023 running on-premises?

0
13
Asked By TechNinja42 On

I'm trying to set up Amazon Linux 2023 on-premises and I'm having trouble getting the cloud-init password settings to be recognized. I've experimented with various configurations but none seem to work. My latest attempt is as follows:

#cloud-config
#vim:syntax=yaml
users:
- default
- name: ec2-user
plain_text_passwd: 'ubuntu'
lock_passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL

Any guidance on how to fix this would be appreciated!

5 Answers

Answered By RantingDev99 On

Honestly, I've had a frustrating time with cloud-init myself. It can be really tricky to work with at times!

Answered By CuriousCoder22 On

You might want to check how you're running Amazon Linux on-premises and how you connect to it. In Amazon Linux 2023, SSH password authentication is usually disabled by default, which could cause issues here.

Answered By LogExplorer99 On

Be sure to look at the cloud-init logs. They can give you insights into what's going wrong with your configuration.

Answered By KVMWhiz On

You may need to mount the disk image and check the logs there. I've used Amazon Linux 2 in isolated environments without running into this issue, so your configuration might need some tweaking.

Answered By HelpfulNotes77 On

I've put together some notes about running Amazon Linux at home using KVM. It might prove useful for your setup! You can take a look at them here: https://www.reddit.com/r/amazonlinux/s/yL8oK8Si9p.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.