canonical / canonical/multipass

Support changing default user via cloud-init

Open
#2,329 3 comments 0 reactions 0 assignees View on GitHub
cloud-init
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

when change default user use cloudinit,
`multipass shel`l (also `multipass exec`) will fail, with message
```
shell failed: ssh failed to authenticate: 'Access denied for 'publickey'. Authentication that can continue: publickey'
```

#### launch
```sh
multipass launch instance use --cloud-init cloud-config.yaml
```

#### cloud-config.yaml
```
system_info:
default_user:
name: admin
lock_passwd: true
groups: users, admin
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
passwd: $6$xxxxxxe.
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `multipass launch instance use --cloud-init cloud-config.yaml` example with the shown `system_info.default_user` configuration, then inspect how cloud-init user changes interact with SSH setup for `multipass shell` and `multipass exec`. Done means both commands authenticate successfully after the default user is changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.