[ubuntu] Managing SSH Host Keys in 20.04 Autoinstall/Cloud Init

[ubuntu] Managing SSH Host Keys in 20.04 Autoinstall/Cloud Init

I want to manage the generation of SSH host keys during a build of a 20.04 VM.

The default is that on first boot cloud-init deletes any host keys and creates fresh ones. The autoinstall docs don’t talk about this. The cloud init docs talk about being able to use the “ssh_deletekeys: false” parameter to control this.

I’ve tried putting this at the top of my user-data file. i.e.

ssh_deletekeys: false

That didn’t work. I also tried manually adding it to the /target/var/lib/cloud/seed/nocloud-net/user-data prior to first reboot, but that didn’t work either.
What am I doing wrong?


Previous [ubuntu] Ubuntu 20.04 Firefox error no Flash plugin
Next Wine Error

About author

You might also like

Ubuntu Dsicussions 0 Comments

Ubuntu fails to load grub/boot, apparently out of nowhere

So today I started having an issue that I don’t know the cause of. I may have updated a few packages yesterday, but I didn’t think I did anything significant.

Ubuntu Dsicussions 0 Comments

Reactions Of The Granite Male Enhancement UK Testo Booster Formula:

GraniteMale Enhancement UK pills is a totally protected thing thatyou can unpredictably put your trust on. It has been made by usingordinary spices and thinks figuratively speaking. It has endorsementfrom

Ubuntu Dsicussions 0 Comments

Compatible USB Wireless Adapter – EDUP EP-AC1605GS

Compatible USB Wireless Adapter – EDUP EP-AC1605GS Product: – EDUP WiFi Adapter 1300Mbps USB 3.0 High Gain Wireless Adapter: Model number: – EP-AC1605GS A location to purchase the adapter: –


No Comments Yet!

You can be first to comment this post!

Leave a Reply