Some additional information:
>>>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. Yes, the template should be a ssh-key script enabled template. That means it should have a script /etc/init.d/cloud-set-guest-sshkey.in configured to run at startup. More information here: http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-i ncubating/html/Installation_Guide/using-sshkeys.html There is resetSSHKeyForVirtualMachine to update the ssh keys on the user VM, in case these were not provided during VM creation. -abhi On 08/02/13 5:18 AM, "Musayev, Ilya" <imusa...@webmd.net> wrote: >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 >