When attempting to configure a remote SFTP backup location in VMware Cloud Foundation (VCF) 9.1, the configuration task fails if a non-standard SSH port (any port other than 22) is specified.
Symptoms:
ssh-keyscan from the SDDC Manager appliance successfully retrieves the server fingerprint, but the UI validation fails.Invalid parameter: Server host key validation failed for <SFTP_SERVER_FQDN>. Ensure that the server is configured to support either the ssh-rsa or ecdsa host key algorithms.Log Analysis: The /var/log/vmware/vcf/operationsmanager/operationsmanager.log file contains entries similar to:
ERROR [operations-manager] SSH connection failed with exit code 255: Server key did not validate.
Internal keyscan mechanism used by VCF 9.1 to populate the in-memory host key repository continues to provide bare hostnames without port identifiers. This discrepancy results in a format mismatch during the validation phase, causing the system to reject valid host keys for any port other than the default (Port 22).
This issue is resolved in VMware Cloud Foundation later releases.
To resolve the issue:
If an upgrade to higher than VCF 9.1.0.0 is not immediately possible, use the following steps to unblock backup operations: