Get SSH Password for VCF 9 Automation
book
Article ID: 412001
calendar_today
Updated On:
Products
VCF Automation
Issue/Introduction
This KB covers the process for getting Fleet Management passwords, specifically for VCF Automation
Cause
The passwords UI in Fleet Management does not allow for viewing passwords
Resolution
- In VMware Cloud Foundation Operations navigate to "Developer Center > APIs & SDKs" and select "Fleet Management API"
- Open ssh session to fleet manager appliance as root and run the command
- Use the Fleet FQDN present in the url bar for this page to help in structuring the following curl command:
$ curl -sSk -u "admin@local:<password>" 'https://<fleet-fqdn>/lcm/locker/api/v2/passwords?aliasQuery=vra-node'
- This will return a json object with the Automation nodes
- Take the vmid value of a node where "referenced" is set to "true"
- Use that value when structuring the following curl command:
curl -sSk -u "admin@local:<password>" -H "Content-Type: application/json" 'https://<fleet-fqdn>/lcm/locker/api/v2/passwords/<vmid>/decrypted' -d '{"rootPassword":"<fleet root password>"}'
- On ssh session to fleet manager appliance as root and run the command
- This final curl command will present you with the ssh password. You can use this with the following ssh command:
ssh vmware-system-user@<automation-node-fqdn>
Feedback
thumb_up
Yes
thumb_down
No