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.
- In vRealize Automation Cloud Assembly, before provisioning, add
remoteAccessproperties 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 properties: name: our-vm2 image: Linux18 flavor: small remoteAccess: authentication: generatedPublicPrivatekey username: testuser
- 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.
- Locate the key name in the properties.
- Use the cloud provider interface, such as the vSphere client, to access the provisioned machine command line.
- Grant read permission to the private key.
chmod 600 key-name
- Go to the vRealize Automation Cloud Assembly deployment, select the machine, and click .
- Copy the private key file to your local machine.
A typical local file path is
- Open a remote SSH session, and connect to the provisioned machine.
ssh -i key-name user-name@machine-ip