Cannot connect to the bootstrapped local machine in lxd, only after adding --debug it reveals the issue 17:03:59 DEBUG juju.provider.common bootstrap.go:686 connection attempt for 10.18.61.91 failed: /home/mastier/.ssh/config: line 30: Bad configuration option: pubkeyacceptedalgorithms The actual option that it complains $ sed -n '30p' .ssh/config PubkeyAcceptedAlgorithms +ssh-rsa Don't understand why this is a problem for juju bootstrap and why actually it is checked To repeat , try the following on jammy $ snap install juju --channel 3.2/stable ~$ juju --debug bootstrap 16:48:47 INFO juju.cmd supercommand.go:56 running juju [3.2.0 c7107ada8c471aa3ba105e5433e61861227e2ed4 gc go1.20.4] 16:48:47 DEBUG juju.cmd supercommand.go:57 args: []string{"/snap/juju/23190/bin/juju", "--debug", "bootstrap"} 16:48:47 DEBUG juju.environs.tools build.go:122 looking for: /snap/juju/23190/bin/juju 16:48:47 DEBUG juju.environs.tools versionfile.go:54 looking for sha256 dd91f1e8fb0f19322549106f6c6793513358485bc9951a73b30b32b7a642d3b1 16:48:47 DEBUG juju.kubernetes.provider detectcloud.go:33 failed to query local microk8s: "/var/snap/juju/23190/microk8s/credentials/client.config" does not exist: juju "3.2.0" can only work with strictly confined microk8s Clouds aws aws-china aws-gov azure azure-china equinix google localhost oracle Select a cloud [localhost]: 16:48:49 DEBUG juju.environs.tools build.go:122 looking for: /snap/juju/23190/bin/juju 16:48:49 DEBUG juju.environs.tools versionfile.go:54 looking for sha256 dd91f1e8fb0f19322549106f6c6793513358485bc9951a73b30b32b7a642d3b1 16:48:49 DEBUG juju.kubernetes.provider detectcloud.go:33 failed to query local microk8s: "/var/snap/juju/23190/microk8s/credentials/client.config" does not exist: juju "3.2.0" can only work with strictly confined microk8s Enter a name for the Controller [localhost-localhost]: 16:48:50 DEBUG juju.container.lxd connection.go:179 using LXD socket at path: "/var/snap/lxd/common/lxd/unix.socket" 16:48:50 INFO cmd provider.go:328 Resolved LXD host address on bridge lxdbr0: https://10.18.61.1:8443 16:48:50 INFO cmd cloudcredential.go:47 updating credential store 16:48:50 DEBUG juju.cmd.juju.commands bootstrap.go:1392 authenticating with region "localhost" and credential "localhost" () 16:48:50 DEBUG juju.cmd.juju.commands bootstrap.go:1551 provider attrs: map[project:default] 16:48:50 INFO cmd authkeys.go:113 Adding contents of "/home/mastier/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys 16:48:50 INFO cmd authkeys.go:113 Adding contents of "/home/mastier/.ssh/id_rsa.pub" to authorized-keys 16:48:50 DEBUG juju.cmd.juju.commands bootstrap.go:1621 preparing controller with config: map[agent-metadata-url: agent-stream:released apt-ftp-proxy: apt-http-proxy: apt-https-proxy: apt-mirror: apt-no-proxy: authorized-keys:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBtVA4BcRPyQJr2SfVXoPhMNO4tc95ou4wabXdNleN/v41k5HUids0zQ6vkLi9HTk9ZWDchcKMJK+KmhlKIz7BK8OL70fdiJefT1DPFjKmUfOLPuzjujk084ufTPyuLF31Vet6uGH5bvu6QCpRF/0UsiiJ9uedUBZXKY4W2Ozy9OSvvJDnRSy3sQsZf7U3vGwMM7a6jRbE/bLT9m9g+u46mCA1jCdR+JbnxTNEME19DwmVXA90ldNsGkdS3DccLjsceidakD2RVCBU9hfzHNZ+JqfDaKLGcOdTc9nlrECI1OgNh3a6imdcf3Yf7RXZ64trnO+VyqezN6ffawjRZnILXNVd0b3eY78Ja9Luerzky9lBFRz8S30/2IIMIafkjPSe2mG7OExPDqH5Yyd6PDM00EAd6lbJwCJ+V4u6blqggqlqJhfqNt34tbDFapUyoN/p5A1V4KdrsJjxJ9g4msVFe19d0dXAwlmmFMfMjyaztDtEL8J1NNzq1oZYaE6fh1bFr+1YZAZ7WfQWpuaqwfojrIVW6bX/tNkA8SEXMU1/5hwjXT/dELmuuPYT25FgswfAE4uWhWeM2MNzoHHJgF8Y3lKmZm8ylD5UXoIEnYY2hLKYVyZuTVFC/IMJwZ/qpLYPSUe8mo+hQ6x+49ij5Lqnps8MBMqKOQhILewlkDYdGQ== juju-client-key ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDntDTrULqVQMaAzYOsSn/EGq0xDw9bX0umpEfoAUvz+wy0sW5FLNM0xASIftqCxEiUV1Qm+MPhy8EKOWMo9m4e6VGLsFsjeye/P6iBTz/sdfsdfz25QULLwqYnkj7TBpPnhI6oeWKnbp8GKPQroxXxpDDBneqk7u+tKh4xf6QCoCY9gj0/1ATaUJ2GVBf55JC9/nZBTJSdYVW9bZ7/EWXLsE4WUhfpAAV8xtsiMsIGrIfuupL5pgJ4vPXLpV6kre2y4FmuCqvEDGc8yCkGz2sPFJiHBsrGc8YU1LstoLdekRl9n3YuVsviRlSc0XxUb/Cm7PtlTxwm11Nc+34tO54LUuIgsAd/FXm8= mastier@myhost automatically-retry-hooks:true backup-dir: charmhub-url:https://api.charmhub.io cloudinit-userdata: container-image-metadata-url: container-image-stream:released container-inherit-properties: container-networking-method: default-base: default-space: development:false disable-network-management:false disable-telemetry:false egress-subnets: enable-os-refresh-update:true enable-os-upgrade:true fan-config: firewall-mode:instance ftp-proxy: http-proxy: https-proxy: ignore-machine-addresses:false image-metadata-url: image-stream:released juju-ftp-proxy: juju-http-proxy: juju-https-proxy: juju-no-proxy:127.0.0.1,localhost,::1 logforward-enabled:false logging-config: logging-output: lxd-snap-channel:5.0/stable max-action-results-age:336h max-action-results-size:5G max-status-history-age:336h max-status-history-size:5G mode:requires-prompts name:controller net-bond-reconfigure-delay:17 no-proxy:127.0.0.1,localhost,::1 num-container-provision-workers:4 num-provision-workers:16 project:default provisioner-harvest-mode:destroyed proxy-ssh:false resource-tags: saas-ingress-allow:0.0.0.0/0,::/0 secret-backend:auto snap-http-proxy: snap-https-proxy: snap-store-assertions: snap-store-proxy: snap-store-proxy-url: ssh-allow:0.0.0.0/0,::/0 ssl-hostname-verification:true test-mode:false transmit-vendor-metrics:true type:lxd update-status-hook-interval:5m uuid:dba74ef9-a3cf-4a97-8912-866e23703038] 16:48:50 INFO cmd bootstrap.go:939 Creating Juju controller "localhost-localhost" on localhost/localhost 16:48:50 INFO juju.cmd.juju.commands bootstrap.go:1010 combined bootstrap constraints: 16:48:50 DEBUG juju.environs.bootstrap bootstrap.go:319 model "controller" supports application/machine networks: true 16:48:50 DEBUG juju.environs.bootstrap bootstrap.go:321 network management by juju enabled: true 16:48:50 DEBUG juju.environs.bootstrap bootstrap.go:374 auto-selecting bootstrap arch "amd64" 16:48:50 INFO cmd bootstrap.go:402 Loading image metadata 16:48:50 INFO cmd bootstrap.go:468 Looking for packaged Juju agent version 3.2.0 for amd64 16:48:50 INFO juju.environs.bootstrap tools.go:78 looking for bootstrap agent binaries: version=3.2.0 16:48:50 DEBUG juju.environs.tools tools.go:87 finding agent binaries in stream: "released" 16:48:50 DEBUG juju.environs.tools tools.go:89 reading agent binaries with major.minor version 3.2 16:48:50 DEBUG juju.environs.tools tools.go:98 filtering agent binaries by version: 3.2.0 16:48:50 DEBUG juju.environs.tools tools.go:101 filtering agent binaries by os type: ubuntu 16:48:50 DEBUG juju.environs.tools tools.go:104 filtering agent binaries by architecture: amd64 16:48:50 DEBUG juju.environs.tools urls.go:133 trying datasource "keystone catalog" 16:48:50 DEBUG juju.environs.simplestreams simplestreams.go:417 searching for signed metadata in datasource "default simplestreams" 16:48:50 DEBUG juju.environs.simplestreams simplestreams.go:451 looking for data index using path streams/v1/index2.sjson 16:48:50 DEBUG juju.environs.simplestreams simplestreams.go:747 using default candidate for content id "com.ubuntu.juju:released:agents" are {20210329 mirrors:1.0 content-download streams/v1/cpc-mirrors-agents.sjson []} 16:48:50 DEBUG juju.environs.simplestreams simplestreams.go:463 looking for data index using URL https://streams.canonical.com/juju/tools/streams/v1/index2.sjson 16:48:50 DEBUG juju.environs.simplestreams simplestreams.go:486 read metadata index at "https://streams.canonical.com/juju/tools/streams/v1/index2.sjson" 16:48:50 DEBUG juju.environs.simplestreams simplestreams.go:1018 finding products at path "streams/v1/com.ubuntu.juju-released-agents.sjson" 16:48:50 INFO juju.environs.bootstrap tools.go:80 found 1 packaged agent binaries 16:48:50 INFO cmd bootstrap.go:481 Located Juju agent version 3.2.0-ubuntu-amd64 at https://streams.canonical.com/juju/tools/agent/3.2.0/juju-3.2.0-linux-amd64.tgz 16:48:50 INFO cmd bootstrap.go:579 Starting new instance for initial controller 16:48:50 INFO cmd environ.go:219 To configure your system to better support LXD containers, please see: https://linuxcontainers.org/lxd/docs/master/explanation/performance_tuning/ 16:48:50 INFO cmd bootstrap.go:187 Launching controller instance(s) on localhost/localhost... 16:48:50 DEBUG juju.provider.lxd environ_broker.go:33 StartInstance: "0", ubuntu@22.04/stable 16:48:50 DEBUG juju.cloudconfig.instancecfg instancecfg.go:947 Setting numa ctl preference to false 16:48:50 DEBUG juju.environs imagemetadata.go:119 obtained image datasource "default ubuntu cloud images" 16:48:50 DEBUG juju.container.lxd connection.go:196 LXD requires https://, using: https://cloud-images.ubuntu.com/releases/ 16:48:50 DEBUG juju.container.lxd image.go:64 Found image locally - "" "a0a9b9976255e7235afe495e920e6c0f40f55ae22852a5d5c31139aa9408f2e5" 16:48:50 DEBUG juju.provider.lxd environ_broker.go:235 LXD user data; 4780 bytes 16:48:50 INFO juju.container.lxd container.go:294 starting new container "juju-703038-0" (image "") 16:48:50 DEBUG juju.container.lxd container.go:295 new container has profiles [default juju-controller] 16:48:52 DEBUG juju.container.lxd container.go:326 created container "juju-703038-0", waiting for start... 16:48:53 INFO juju.provider.lxd environ_broker.go:48 started instance "juju-703038-0" 16:48:53 INFO cmd bootstrap.go:331 - juju-703038-0 (arch=amd64) 16:48:53 INFO juju.environs.bootstrap bootstrap.go:999 newest version: 3.2.0 16:48:53 INFO juju.environs.bootstrap bootstrap.go:1014 picked bootstrap agent binary version: 3.2.0 16:48:53 INFO cmd bootstrap.go:622 Installing Juju agent on bootstrap instance 16:48:53 DEBUG juju.cloudconfig.instancecfg instancecfg.go:947 Setting numa ctl preference to false Waiting for address Attempting to connect to 10.18.61.91:22 Attempting to connect to fd42:3e71:9632:c147:216:3eff:fe90:7d2:22 16:49:03 DEBUG juju.provider.common bootstrap.go:686 connection attempt for fd42:3e71:9632:c147:216:3eff:fe90:7d2 failed: /home/mastier/.ssh/config: line 30: Bad configuration option: pubkeyacceptedalgorithms /home/mastier/.ssh/config: line 37: Bad configuration option: pubkeyacceptedalgorithms /home/mastier/.ssh/config: line 58: Bad configuration option: pubkeyacceptedalgorithms /home/mastier/.ssh/config: terminating, 3 bad configuration options