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;
VCF 9.1
VMware Management Services Platform (VMSP) backup requires remote-exec permission to transfer data on the target sftp server. In case if the same is not available, the backups are expected to fail.
Broadcom engineering is aware of the issue and will be fixed in future release.
As a workaround, install OpenSSH or Rclone on the backup server and reconfigure backup from VCF Operations UI
Configuring OpenSSH Server on Windows SFTP server
Configuring Rclone on Windows SFTP Server
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Server*'Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0Set-Service -Name sshd -StartupType 'Automatic'Start-Service sshdGet-Service sshd
Set-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -Enabled Truenotepad "$env:ProgramData\ssh\sshd_config"Subsystem sftp sftp-server.exeMatch User <sftpuser> ChrootDirectory C:\SFTPRoot ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding noMatch Group <sftp_usergroup> ChrootDirectory C:\SFTPRoot ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding noNew-Item -ItemType Directory -Path "C:\SFTPRoot\uploads" -Forceicacls "C:\SFTPRoot\uploads" /grant "sftpuser:(OI)(CI)F"Restart-Service sshd
# Add C:\rclone to System PATH variable so you can run it anywhere$envPath = [Environment]::GetEnvironmentVariable("Path", "Machine")if ($envPath -notlike "*C:\rclone*") { [Environment]::SetEnvironmentVariable("Path", "$envPath;C:\rclone", "Machine") $env:Path += ";C:\rclone"}
Note: change the envPath as per the folder of rclone
# Verify installationrclone version
# Update the known_hosts_file
rclone config update sftp-backup known_hosts_file "none"
# For Password Authenticationrclone config create sftp-backup sftp host "<sftp IP/FQDN>" user "<sftpuser>" port 22 pass "YourPasswordHere"
OR
# For SSH Key Authenticationrclone config create sftp-backup sftp host "<sftp IP/FQDN>" user "<sftpuser>" port 22 key_file "C:\<path to id_rsa>"
# Sync local folder 'C:\backup_folder' to remote SFTP folder '/remote/backup/path'
rclone sync <partition>:\<backup_folder> sftp-backup:/remote/backup/path --dry-run -P