cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harikrishna Patnala <>
Subject Re: Creating an instance with ssh key pair
Date Fri, 13 Sep 2013 10:48:45 GMT
SSH script pulls only the ssh public key that is associated with the vm instance.
There is an API to reset the SSH key pair associated to the VM. This is will associate new
ssh key pair to the vm and on reboot of vm this ssh script gets the new ssh public key into
the VM.
If you can modify the ssh script in the vm to append the new ssh public key to the authorised_keys
file we can use both old and new ssh key pair.


On 12-Sep-2013, at 9:35 PM, Travis Graham <> wrote:

> Will this only pull down one key pair or can it pull down many? We have a need to pull
in our keys as well as all of our customers keys.
> If the script can only pull down one, we can make it work, but would be nice to pull
down all keys from the project an instance is associated with.
> Travis
> On Sep 12, 2013, at 11:55 AM, Sangeetha Hariharan <>
>> To deploy Vm using ssh key pairs  you will need to use a template that has SSH Key
Gen Scripts in it.
>> Only then you will be able to  ssh into the instance using ssh key.
>> -Thanks
>> Sangeetha
>> -----Original Message-----
>> From: Gaurav Aradhye [] 
>> Sent: Thursday, September 12, 2013 5:00 AM
>> To:
>> Subject: Creating an instance with ssh key pair
>> Hello all,
>> If I create an instance providing ssh key pair while creation, and using a "normal
template" from the cloudstack setup, then will the SSH to vm using the keyPairFlieLocation
always work?
>> Or the template which I am using for creating the instance has to be supporting SSH
keys? as explained in 5.2.1 section at
>> In short, Is the SSH using keyPairFileLocation -  template dependent or will it always
work if I provide ssh key pair while creating instance and use normal template?
>> Regards,
>> Gaurav

View raw message