Hi, I'm using CS 3.0.2. I've tried listSSHKeyPairs and yes I meant bug CS-12667. I've come to the article you give as reference and it's really a good dive into using ssh keys in CS.
So, after thinking at it, I will use registerSSHKeyPair instead of createSSHKeyPair. So I can use previously generated SSH keys (for them I already have the private key ;-)). By the way, t here is a little documentation bug around registerSSHKeyPair, it is not refered in the SSH category. I would have another question about that, is there a way to use multiple ssh keys in instances, the only place I found to declare ssh keys was in deployVirtualMachine. Julien ----- Mail original ----- > De: "Gavin Lee" <[email protected]> > À: [email protected] > Envoyé: Mercredi 22 Août 2012 16:01:26 > Objet: Re: how can we get private SSH key > Which version do you use? Have you tried the listSSHKeyPairs? Do you > mean the bug is CS-12667? > In CS3.0, the createSSHKeyPair and listSSHKeyPairs have the same > response value. If the listSSHKeyPairs does not return privatekey or > hidden by design, I think you are right that the only way to get > privatekey is via api: createSSHKeyPair. > Here is a reference [1] for sshkeypair deep dive, hope can help a > little. > [1] -- > http://chriskleban-internet.blogspot.com/2012/03/build-cloud-cloudstack-instance.html > On Wed, Aug 22, 2012 at 5:03 PM, Julien Garet <[email protected]> > wrote: > > > > Hello, > > > > > > I've created ssh key pairs using the API. From the doc, I thought I > > could get back the private keys with listSSHKeyPairs, but in fact > > there's a bug opened telling the doc is not good et private key is > > hidden. So my question : Is there a way to get this ssh private > > key from the API ? Or the only moment we have it is when it is > > created ? > > > > > > Julien Garet > > > -- > Gavin
