Categories
CloudStack

SSH Keys on CloudStack Guest Instances Using Cloud-init

See earlier blog post on installing Cloud-init on CloudStack CentOS/RHEL guest instances. To have cloud-init install SSH public key for the root user on CentOS 6.x guest instances under CloudStack… Shanker BalanShanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for […]

Categories
CloudStack

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 10.102.100.132 Permission denied (publickey). Fix: [root@cloudplatform ~]# /usr/lib64/cloud/agent/scripts/vm/systemvm/injectkeys.sh Usage: injectkeys.sh <new public key file> <new private key file> <systemvm iso path> [root@cloudplatform ~]# bash -x /usr/lib64/cloud/agent/scripts/vm/systemvm/injectkeys.sh \ /var/lib/cloud/management/.ssh/id_rsa.pub \ /var/lib/cloud/management/.ssh/id_rsa \ /mnt/ss/systemvm/systemvm-3.0.6.20121221114808.iso Shanker BalanShanker Balan is […]