Re-Inject keys into CloudStack System VMs

SSH Login failure after a CloudStack reinstall due to stale id_rsa keys.

[root@cloudplatform ~]# ssh -i /var/lib/cloud/management/.ssh/id_rsa -p 3922
Permission denied (publickey).


[root@cloudplatform ~]# /usr/lib64/cloud/agent/scripts/vm/systemvm/ 
Usage:  <new public key file> <new private key file> <systemvm iso path>
[root@cloudplatform ~]# bash -x /usr/lib64/cloud/agent/scripts/vm/systemvm/ \
  /var/lib/cloud/management/.ssh/ \
  /var/lib/cloud/management/.ssh/id_rsa \

By Shanker Balan

Shanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for both short term and long term projects on contract.

Please use the Contact Form for any enquiry.

Leave a Reply

Your email address will not be published. Required fields are marked *