How can I add keys to already deployed machines

I want to add additional SSH keys to machines after they have already deployed. Is this possible to do with MAAS?

Somehow I need to access some deployed boxes and I no longer have the keys used for the original deploy.

How can I access the boxes without releasing the machines and clobbering what is installed?


There’s no functionality to directly add SSH keys to deployed machines, since MAAS doesn’t have an agent running, so MAAS can’t access the deployed system.

What you can do, though, is to put the machine into Rescue Mode. From there you can access and mount the partition where /home is and add the SSH key there.

1 Like