Get SSH Password for VCF 9 Automation
search cancel

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

Environment

VCF 9

Cause

The passwords UI in Fleet Management does not allow for viewing passwords

Resolution

  1. In VMware Cloud Foundation Operations navigate to "Developer Center > APIs & SDKs" and select "Fleet Management API"
  2. Open ssh session to fleet manager appliance as root and run the command
    • set +H
  3. 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'
  4. This will return a json object with the Automation nodes
  5. Take the vmid value of a node where "referenced" is set to "true"
  6. 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>"}'
  7. On ssh session to fleet manager appliance as root and run the command
    • set -H
  8. 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>