Public bug reported:

Hi,

I made some experiments with virtual machines with Ubuntu-20.04 at a
german cloud provider (Hetzner), who uses cloud-init to initialize
machines with a basic setup such as ip and ssh access.

During my installation tests I had to reboot the virtual machines
several times after installing or removing packages.

Occassionally (not always) I noticed that the ssh host keys have
changed, ssh complained. After accepting the new host keys (insecure!) I
found, that all key files in /etc/ssh had fresh mod times, i.e. were
freshly regenerated.

This reminds me to a bug I had reported about cloud-init some time ago,
where I could not change the host name permanently, because cloud-init
reset it to it's initial configuration at every boot time (highly
dangerous, because it seemed to reset passwords to their original state
as well.

Although cloud-init is intended to do an initial configuration for the
first boot only, it seems to remain on the system and – even worse:
occasionally – change configurations.

I've never understood what's the purpose of cloud-init remaining active
once after the machine is up and running.

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1885527

Title:
  cloud-init regenerating ssh-keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1885527/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to