Score:1

What did cloud-init do with the SSH key it generated when I installed Ubuntu server and why was that necessary?

vn flag

When installing Ubuntu server I saw that cloud-init created an SSH key for me. Why did it do this? Did this key get uploaded to any server or did it stay on my local machine for my personal use?

muru avatar
us flag
Does this answer your question? [Why is an SSH public key being installed on my new Ubuntu 20.04.1 instance before I can log in for the first time? Am I being hacked?](https://askubuntu.com/questions/1271684/why-is-an-ssh-public-key-being-installed-on-my-new-ubuntu-20-04-1-instance-befor)
Score:2
in flag

Welcome to AskUbuntu,

Based on the documentation for cloud-init, the service configures the following items during installation:

  • setting a default locale
  • setting hostname
  • generate ssh private keys
  • adding ssh keys to user's .ssh/authorized_keys so they can log in
  • setting up ephemeral mount points

Canonical does not collect any data from people during the installation of Ubuntu Server or Ubuntu Desktop. After installation of Ubuntu Desktop, people have the option to elect to send some system information to Canonical so that their development teams can ensure the hardware that people most commonly use are properly tested with each release, but that is all. None of the hundreds of Ubuntu Server installations I have made over the last decade or so have uploaded anything without my knowledge or consent.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.