unable to make directory on the backup server.unable to fetch the SSH fingerprint./var/log/vmware/vcf/operationsmanager/operationsmanager.log of SDDC manager, following error is seen:YYYY-MM-DD HH:MM:SS 153+0000 DEBUG [vcf_om,69eb8beaaee4935] [c.v.e.sddc.common.util.SshKeyHelper,pool-2-thread-3] Found ecdsa SSH key for host <Backup-FQDN>: {"host":Backup_FQDN","keyType":"ecdsa-sha2nistp256","key":"[KEY_STRING]"}YYYY-MM-DD HH:MM:SS.153+0000 INFO [vcf_om,69eb8beaaee4935 [c.v.v.c.f.p.b.r.v.BackupLocationValidator,pool-2-thread-3] Given SSH fingerprint didn't match any of the fingerprints on server Backup_FQDNVMware Cloud Foundation 5.x
VMware Cloud Foundation 9.x
ECDSA-based SSH fingerprint for SFTP backup configuration. RSA keys are not supported for fingerprint authentication in this release. known_hosts files on the SDDC Manager have incorrect permissions or ownership, preventing the system from writing or updating the fingerprints even after a successful manual injection attempt.Ensure the backup server provides an ECDSA key and correct the permissions for the relevant known_hosts files on the SDDC Manager.
Log in to the SDDC Manager via SSH as root and execute the following commands to set the correct permissions (644) and ownership:
chmod 644 /root/.ssh/known_hosts && chown root:root /root/.ssh/known_hostschmod 644 /etc/vmware/vcf/commonsvcs/known_hosts && chown vcf_commonsvcs:vcf /etc/vmware/vcf/commonsvcs/known_hostschmod 644 /home/vcf/.ssh/known_hosts && chown vcf:vcf /home/vcf/.ssh/known_hostschmod 644 /opt/vmware/vcf/commonsvcs/defaults/hosts/known_hosts && chown vcf_commonsvcs:vcf /opt/vmware/vcf/commonsvcs/defaults/hosts/known_hostsStep 2: Refresh and manually inject ECDSA Key
curl -k -X POST http://localhost/appliancemanager/ssh/knownHosts/refreshssh-keyscan -t ecdsa [SFTP_SERVER_FQDN]curl -i -X POST 'http://localhost:7100/appliancemanager/ssh/knownHosts' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"knownHosts":[{"host":"[SFTP_SERVER_FQDN]","port":22,"keyType":"ecdsa-sha2-nistp256","key":"[KEY_STRING]"}]}'
Note: Replace [SFTP_SERVER_FQDN] with backup server address and [KEY_STRING] with the string retrieved in Step 2 point 2.
ecdsa key-string from step 2 command point 2: ssh-keyscan -t ecdsa [SFTP_SERVER_FQDN] { "knownHosts": [ { "host": "[SFTP_SERVER_FQDN]", "port": 22, "keyType": "ecdsa-sha2-nistp256", "key": "[KEY_STRING]" } ]}