Error Message:
"Invalid parameter: validation failed for directory path </path/to/directory>" on server <IP_or_FQDN>. Ensure the backup directory is intact and the SFTP server has write permissions on the backup path.
/var/log/vmware/vcf/operationsmanager.log, we see below mentioned error YYYY-MM-DDThh:mm:ss DEBUG [vcf_om,022c14a0bc064510,ef9a] [c.v.e.s.c.u.InMemoryHostKeyRepository,http-nio-127.0.0.1-7300-exec-1] Key <KEY-STRING>= of type ecdsa-sha2-nistp256 for host <target-backup-server> not found in [KeySpec(host=<target-backup-server>, port=Optional[22], keyType=ssh-rsa, key=<KEY-STRING>)]YYYY-MM-DDThh:mm:ssERROR [vcf_om,022c14a0bc064510,ef9a] [c.v.evo.sddc.common.util.SshUtil,http-nio-127.0.0.1-7300-exec-1] Unable to create jsch CLI session:com.jcraft.jsch.JSchException: reject HostKey:<target-backup-server>
VMware vCloud Foundation 4.5.x
The root cause of this issue is related to a problem in negotiating SSH keys with OpenSSH server versions 8:8 and higher.
This issue is resolved in VMware cloud foundation 5.1.1 For more information visit VMware Cloud Foundation 5.1.1 Release Notes
Workaround: -
You will need to manually fetch the SSH RSA fingerprint from the backup server and register it through the SDDC Manager API.
Fetch SSH-RSA SHA256 Fingerprint of the Backup Server:
Execute the following command to retrieve the fingerprint of the SSH server:
The output should display the fingerprint in the following format:
Register the Backup Server Using the VCF API:
/v1/system/backup-configuration endpoint.Use the Following JSON to Register the Backup Server:
Populate the required fields with your server's details, including the fingerprint you fetched earlier.
Execute the API:
Once you've populated the required fields, execute the API call. Wait for the Backup-Configuration task to complete successfully. You can track the task status in the Tasks panel within the SDDC Manager UI.
Verify Backup Configuration:
To verify that your backup configuration is working, trigger a backup manually via the SDDC Manager UI or through the API.