TKGi deployment via Management console fails with error validating Ops Manager Dns: error permission denied
book
Article ID: 404562
calendar_today
Updated On:
Products
VMware Tanzu Kubernetes Grid Integrated Edition
Issue/Introduction
Attempting to deploy TKGi in Management console fails with message -
error validating Ops Manager Dns: Command error output: ubuntu@<ops manager> permission denied (publickey)

Resolution
Management Console deploys Ops Manager during deployment. This error may happen if the SSH key changed on Ops Manager since initial deploy happened.
In order to workaround, perform the steps -
- Locate the Ops Manager SSH key at:
Management Console > Deployment Metadata > Ops Manager VM SSH Private Key
- Generate a new ssh key:
ssh-keygen -y -f <Ops Manager VM SSH Private> > <public key file>
- Edit the authorized_keys file on OpsManager to include public key:
$ sudo vim ~/ssh/authorized_keys
<paste contents of public key file from step 2>
- Validate that SSH works with private key:
ssh -i <Ops Manager VM SSH Private> ubuntu@END-POINT
Afterwards you can re-run the deployment of TKGi via Management Console and it should now succeed.
Feedback
thumb_up
Yes
thumb_down
No