If memory serves me right: Initial setup: 1) You import you SSH public key into CS 2) when you import your template initially, you define what ssh keypair to use for this template (this is done in 3.0.x 4.0.x via API call, I don’t know if it changed in 4.1 - ask on cloudstack-dev list) 3) the template must have an ssh-key pulling script (cant recall the full name but its posted on wiki) that is ran when it starts up.
How key gets there? 1) Once VM provisioned from the template, the guest vm contacts the router VM and pull down the ssh public key and stores it into /root/.ssh/authorized_keys file - it can do so as often you decide to run it. I've seen a feature where you should be able to change the public key pair as needed - something you can not do on AWS. End user access: 1) User connects to a guest vm with 'ssh -i (my_private_key_used_for_predefined_key_pair) my_guest_vm' - same as AWS. -----Original Message----- From: Nux! [mailto:n...@li.nux.ro] Sent: Thursday, February 07, 2013 6:33 PM To: cloudstack-users@incubator.apache.org Subject: RE: Setting root/Administrator password & SSH keys On 07.02.2013 23:22, Musayev, Ilya wrote: > We should file this as enhancement request. > > Presently SSH keys are set via API call when you import the template > into CS. Your template must have the SSH keys script as well. I found some old bug for 2.2, looks like the devs didn't find it a worthy feature. http://bugs.cloudstack.org/browse/CS-11673 I'm still puzzled, how does a user access his VMs? Few of them are technical enough to go through all the API calling stuff (many have no idea what curl is). -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro