How to connect to Ubuntu 22.04 LTS default image from MAAS server?

I added Ubuntu 22.04 LTS image with MAAS 3.4.8.

I have never deployed the default image.

I know that I can use the “ubuntu” user to SSH into the deployed Ubuntu. So … And that I can’t get a password login.

To SSH connect using “cloud-user” after I deploy the Rocky 8.10 custom image, I run the “ssh-keygen” command as a regular user with MAAS installed, and in the curtin_userdata_custom file I add the public key (id _rsa.pub) and also pasted the contents of the public key from the WebUI.

Would you say that I am already ready to log in to my deployed Ubuntu 22.04 LTS as an ubuntu user?

Translated with DeepL.com (free version)

you should add your SSH key to MAAS and it will be installed when you deploy machines. After that you can SSH into these machines

1 Like

Thank you for all your answers.

So am I correct in assuming that my server is already ready?

I had set it up to operate on a closed network, so I created a local mirror for the Ubuntu 20 image deployment, uploaded it with Apache2 and set the Proxy setting to External, but changed the Proxy setting back to “MAAS built-in”, Downloaded Ubuntu 22.04 LTS image.

Can I then use PXE Boot → Commissioning → Deploy → ubuntu user to connect via SSH?

If this is an air-gapped environment then you also need an APT mirror

1 Like

I am sorry. My explanation was insufficient.

We do operate on a closed network, but we are online when deploying the Ubuntu 22.04 LTS image.

Since we can connect to the Internet, we do not need a local mirror of Ubuntu 20, and I believe it is appropriate to change the Proxy settings that were directed to the MAAS server back to “MAAS built-in”.

First, I noticed that I could not select and download Ubuntu 22.04 LTS from the WebUI without reverting the Proxy settings back to “MAAS built-in”.