SFTP and Credential Gotchas Explained for VCF Backup
Based on Broadcom KB article 415599
If you’re setting up SFTP in VMware Cloud Foundation (VCF) Fleet Management and keep running into a stubborn “SFTP Configuration failed on Cluster. Check the cluster logs for more details” error, the culprit might be something surprisingly simple: your password.
General Backup and Restore documentation of VCF can be found is this Link.
Additional VCF has three levels of SFTP configurations:
- vCenter
- SDDC (and NSX)
- VCF Fleet Runtime
Every level has it’s own issue and the text below describe issues regarding item level 3.
But with Level 1 you can have a simple password length issue, because 20 characters is the maximum password lenght of the vCenter.
This is described in the VCF documentation and the article vCenter Password Requirement and Lockout Behavior.
So keep all password variables in mind when you create an SFTP server user account.
The Problem
When configuring SFTP settings under Fleet Management > Lifecycle > Settings, the deployment fails for both the Identity Broker (VIDB) and Automation (VCFA) clusters. This isn’t just a cosmetic annoyance — a working SFTP configuration is a prerequisite for backups, which in turn blocks important lifecycle operations like patching Identity Manager and Automation to newer versions such as 9.0.1.
What makes this issue particularly frustrating is its behavior on retry: the retry operation appears to succeed, but the SFTP status stubbornly stays in a FAILED state no matter how many times you try.
Affected products
- VMware Cloud Foundation (VCF) Fleet Management 9.x
- VCF Identity Broker (VIDB) 9.x
- VCF Automation (VCFA) 9.x
The Root Cause
The issue comes down to special characters in the SFTP password — specifically the combination !&. The deployment script that pushes the SFTP secret to the clusters doesn’t properly escape these characters, so the shell interprets them as commands rather than treating them as literal password characters. The result: the SFTP secret never gets configured correctly, and the deployment fails.
It’s a classic shell-escaping bug — ! triggers history expansion and & backgrounds a process in most shells, so an unescaped password containing them can wreak havoc in any script that handles it carelessly.
The Fix
The workaround is straightforward: change the SFTP password to avoid the problematic characters.
- In the VCF Operations console, go to Fleet Management > Lifecycle > Settings > SFTP Settings.
- Update the SFTP password so that it:
- uses primarily alphanumeric characters,
- starts with a letter, and
- limits special characters to this safe set:
~ @ # % ^ , . /
- Save the settings — this triggers a fresh configuration deployment.
- Watch the SFTP settings status until it reports success.
- Once the configuration is confirmed healthy, you can proceed with backups and the patching of VIDB and Automation.
Takeaway
Until the escaping issue is fixed in the product itself, treat the SFTP password in VCF Fleet Management as “alphanumeric-first.” If you’re standardizing passwords via a password manager or vault policy, it’s worth building a rule for this endpoint that excludes ! and & (and other shell-significant characters) entirely. It’ll save you a confusing troubleshooting session staring at a FAILED status that never explains itself.