SSH Keys

It is impossible to add *just* a public key without first generating a private/public keypair.

Also, when I've added a public key, it fails to get inserted into most system images due to the following error:

Adding extra authorized SSH keys ..
.. some failed : cp: cannot create regular file `/mnt/xen-testing/root/.ssh/authorized_keys': No such file or directory

Perhaps ensure the .ssh directory exists?

Status: 
Closed (fixed)

Comments

That's surprising, as the current code does check for and create .ssh if needed.

Is the root user's home directory actually /root on this virtual system? If so, does it have a .ssh sub-directory?

It is, but it doesn't have .ssh - this is the default Cloudmin 64-bit Xen CentOS 5.3 image.

I just tried this by creating an image without a .ssh directory, and it was created just fine as part of the setup process..

Which Cloudmin version do you have there?

Regarding our IM conversation etc... The fixed RPM you gave me doesn't seem to have touched the problem, as it seems like it's back at square one with the original issue.

Fixed in the new RPM I sent, and in the next Cloudmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.