VCF 9.x Backup Configuration Fails with SSH Handshake Error Due to Uppercase FQDN
search cancel

VCF 9.x Backup Configuration Fails with SSH Handshake Error Due to Uppercase FQDN

book

Article ID: 458769

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • Configuring backup on VCF Operations may fail with 

    File copy error: Failed to create file system for destination "sftp:/<backup directory>/": NewFs: couldn't connect SSH: ssh: handshake failed: knownhosts: key is unknown;

  • Validating the logs for the backup precheck pod 

    kubectl logs backup-configuration-precheck-mcmbk-execute-script-26#####23 -n vmsp-platform |less

File copy error: Failed to create file system for destination "sftp:/<backup directory>/": NewFs: couldn't connect SSH: ssh: handshake failed: knownhosts: key is unknown;
YYYY/MM/DD HH:MM:SS INFO : njh5#####fzyaw4 Attempting to update precheckMessages in secret task-njh5#####fzyaw4 (resourceVersion: 60766404, attempt: 1/10)

Environment

VCF Operations

Cause

The precheck/backup SFTP flow does not normalize the configured SFTP host's letter case before using it for both ssh-keyscan and the rclone connection. ssh-keyscan writes known_hosts entries with the hostname lowercased, while rclone uses the configured hostname as-is. Since known_hosts matching is case-sensitive, a mixed-case FQDN causes a false negative match

Resolution

Configure the hostname for the VMSP component backup using lowercase. Refer to Configure an External SFTP Server for VCF Management Services and VCF Automation Backups