If you don't have your own public-private key pair for remote access authentication, you can have vRealize Automation Cloud Assembly generate a key pair.

Use the following code as a guideline.

  1. In vRealize Automation Cloud Assembly, before provisioning, add remoteAccess properties to the cloud template as shown in the example.

    The username is optional. If you omit it, the system generates a random ID as the username.


    type: Cloud.Machine
      name: our-vm2
      image: Linux18
      flavor: small
        authentication: generatedPublicPrivatekey
        username: testuser
  2. In vRealize Automation Cloud Assembly, provision the machine from its cloud template, and bring it to a started-up state.

    The provisioning process generates the keys.

  3. Locate the key name in the Deployments > Deployments > Topology properties.
  4. Use the cloud provider interface, such as the vSphere client, to access the provisioned machine command line.
  5. Grant read permission to the private key.

    chmod 600 key-name

  6. Go to the vRealize Automation Cloud Assembly deployment, select the machine, and click Actions > Get Private Key.
  7. Copy the private key file to your local machine.

    A typical local file path is /home/username/.ssh/key-name.

  8. Open a remote SSH session, and connect to the provisioned machine.

    ssh -i key-name user-name@machine-ip