Add comment to default onapp SSH public key
Dear Onapp Support,
it would be nice if the default SSH Key provided by Onapp would have a comment to the public key.
So that we and our customers immediately know that the key belongs to onapp.
Best Regards,
Christian Kaulfuß
-
I've had a support ticket with OnApp about this, and with some good help from Matt Dayley, we have found out how comments can be added to the provisioned public key.
The (public) key that is provisioned is stored on your control server, in the file /onapp/interface/config/keys/public. This file can be edited by your favorite editor, and a comment of your choice added at the end of the line as per normal ssh public key format. Be careful so you don't break the key in any way.
For illustration, your /onapp/interface/config/keys/public file should contain something like this:
ssh-rsa AAA/LONG+KEY+HERE== Your comment goes here
The new public key won't be used until the onapp service is restarted however, so you'll need to issue the following command. Note that this will disrupt various OnApp services, so you might want to do this off-hours:
# service onapp restart
Afterwards, your public key with your new comment will be provisioned during the "ConfigureOperatingSystem" task of building (or rebuilding) a VM.
Hope this helps!
Please sign in to leave a comment.
Comments
1 comment