yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92304
[Bug 1997588] Re: users module does not allow ssh_import_id and ssh_authorized_keys at the same time
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/4045
** Bug watch added: github.com/canonical/cloud-init/issues #4045
https://github.com/canonical/cloud-init/issues/4045
** Changed in: cloud-init
Status: Triaged => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1997588
Title:
users module does not allow ssh_import_id and ssh_authorized_keys at
the same time
Status in cloud-init:
Expired
Bug description:
I'm on ubuntu 22.04, using multipass 1.10.1 with a cloud-init file to
instanciate a simple server:
```yaml
users:
- name: ubuntu
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOkF+W1ETkZQr5PWhcugCVh3aSyNDFTYQRRblh7prGXN
ssh_import_id:
- lp:nrobinaubertin
```
I launch the instance with:
```shell
multipass launch -n simple_instance -d 10G -m 1G -c 1 --cloud-init cloud-init.yaml 22.04
```
And I check the authkeys file with:
```shell
multipass exec simple_instance -- cat /home/ubuntu/.ssh/authorized_keys
```
The key from `ssh_authorized_keys` is there but not the one from `ssh_import_id`.
From the documentation website and the examples given [here](https://cloudinit.readthedocs.io/en/latest/topics/examples.html) I would expect both keys to be present.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1997588/+subscriptions
References