VCF 9.1 fleet DR: fixing the SSH fingerprint error that stops the restore

By 15 min read

Update, 2 December 2026: Broadcom's VCF disaster recovery design already covers this: the recovery site is expected to reach the primary site's backups on its own SFTP server. I've added the design requirements behind it in Why it happens, a step to point the recovery site's backups back at their original SFTP server after the failover, a note on hitting the same error in the VCF Recovery Coordinator, and a design check to What I'll do next time. The fix itself hasn't changed.

I was partway through a VCF 9.1 fleet failover test in my lab when the restore stopped. About five minutes in, this appeared:

[ERROR] [vsp-01b.site-b.bridgetocloud.net] Restore ended with status: Failed
[ERROR] [vsp-01b.site-b.bridgetocloud.net] SSH fingerprint of the configured SFTP server was not provided and failed to be auto discovered. Please provide the fingerprint and try again.

PowerShell showing Restore-ServicesRuntimeComponentBackup ending with status Failed and the message that the SSH fingerprint of the configured SFTP server was not provided

I hit this at step 8 of Broadcom's VCF Fleet Disaster Recovery failover plan, the step that restores the fleet components on the recovery site's VCF management services instance. You run Restore-ServicesRuntimeComponentBackup against the services runtime at the recovery site, and it pulls the components back from the backups. This was on VCF 9.1.1.

My lab

I have two sites, and each one backs up to an SFTP server at the other site, so losing a site doesn't take its own backups with it.

Site VCF services runtime Backs up to
Site A (protected) vsp-01a.site-a.bridgetocloud.net The SFTP server at Site B
Site B (recovery) vsp-01b.site-b.bridgetocloud.net The SFTP server at Site A

For the test, Site A was "gone" and Site B had to rebuild Site A's fleet components from Site A's backups. The backups were fine, Site B could reach the SFTP server, and the network checked out. It still failed.

Why it happens

This only happens when the two VCF instances are configured with separate SFTP servers. When both instances use the same SFTP server, I didn't get this error.

The recovery site had never connected to the SFTP server that holds Site A's backups, so it had no fingerprint for it.

An SSH fingerprint is a short value that identifies a server. A services runtime stores one for its SFTP server in its backup settings and checks it on every connection. If it has no fingerprint, or the fingerprint doesn't match, it won't connect, which is what you want if someone puts a fake server in the way.

In my setup vsp-01b only knew about its own backup target, the SFTP server at Site A. Site A's backups lived on a different server that vsp-01b had never seen. The restore tried to discover the fingerprint on its own, couldn't, and stopped.

I first looked for a place to put the fingerprint in the restore payload. There isn't one. The runtime has to know the SFTP server before the restore starts.

It's a design requirement, not a bug

Broadcom's design elements for VCF disaster recovery cover this with two deployment requirements:

Requirement What it asks for
VCF-PB-DR-REQD-023 A backup location configured in VCF Operations for both the protected and the recovery site VCF Instances. You add it manually.
VCF-PB-DR-REQD-024 The primary site's backups available on the recovery site's SFTP server, under the path configured on the backup location for that site. That means using the same SFTP server, or replicating the backups from the primary site.

As I read it, my lab didn't meet REQD-024: each site sent its backups to an SFTP server at the other site, and nothing copied Site A's backups to the server the recovery site was configured to use. The script below is how I got past it in the lab. Meeting REQD-023 and REQD-024 before a disaster is how you avoid it.

Design versus real life: The design points you towards one shared SFTP server for both sites (ideally a highly available one), or replicated copies of the backups. In real environments, though, I regularly see customers who already run separate SFTP servers and back up each site to the other one, the same cross-site pattern as my lab. If that's your setup, either add replication so the primary site's backups also land on the recovery site's SFTP server, or keep the fingerprint fix below in your runbook, because this is the error you'll hit.

The fix

Give the recovery runtime the SFTP settings, fingerprint included, through its own API, then run the restore again. This doesn't need the VCF Operations GUI, which helps in a real disaster when you may not have one.

The services runtime has an API that accepts these settings, so I wrapped the calls in a PowerShell script, Set-ServicesRuntimeSftpSettings.ps1. It makes four calls:

Step API call
Get a token POST /api/v1/identity/token with grant_type=password
Find the services runtime component GET /api/v1/components
Push the SFTP settings and fingerprint POST /api/v1/components/<id>?action=apply
Watch the task GET /api/v1/tasks/<taskId>

One thing to know first: this replaces the runtime's SFTP backup settings. Afterwards the recovery runtime backs up to the same SFTP server that holds Site A's backups, not the one it was set up with.

Put the backup settings back after the failover. This is a temporary change to the VMSP backup settings on the recovery site, made only so the restore can read Site A's backups. Once the failover is complete, point the recovery runtime back at its original SFTP server, or its future backups keep going to the wrong place. Before you confirm in step 2, write down the current settings the script shows you so you know what to put back. See Step 4.

Step 1: get the SFTP server's fingerprint

Run this from any Linux machine that can reach the SFTP server. I used the recovery site's SDDC Manager as root.

SFTP=192.168.1.244
# ED25519 key
ssh-keyscan -t ed25519 -p 22 $SFTP 2>/dev/null > /tmp/sftp.pub; ssh-keygen -E sha256 -lf /tmp/sftp.pub
# RSA key
ssh-keyscan -t rsa -p 22 $SFTP 2>/dev/null > /tmp/sftp.pub; ssh-keygen -E sha256 -lf /tmp/sftp.pub

You get a line like 256 SHA256:AbC123... 192.168.1.244 (ED25519). You need the whole SHA256:... value. A server has one fingerprint per key type. ED25519 is the recommended one, but the RSA fingerprint also works. I used the RSA one and it worked for me.

In DR it's worth checking the value against the key on the SFTP server itself, for example with ssh-keygen -E sha256 -lf /etc/ssh/ssh_host_rsa_key.pub. If the two match, nobody is impersonating the server.

Step 2: push the settings with PowerShell

I ran this from my Windows jump host in PowerShell 7. It's written to work in Windows PowerShell 5.1 as well, but I haven't tested that. The only thing it talks to is the recovery runtime's API.

  1. Save the script (full text below, or download it) as Set-ServicesRuntimeSftpSettings.ps1. If Windows complains that it came from the internet, Unblock-File .\Set-ServicesRuntimeSftpSettings.ps1 fixes that.

  2. Point it at the recovery runtime:

    .\Set-ServicesRuntimeSftpSettings.ps1 `
        -ServicesRuntimeFqdn vsp-01b.site-b.bridgetocloud.net `
        -SftpHost 192.168.1.244 `
        -SftpUsername vcf-backup-user `
        -SftpDirectory /data/sftp/vcf-backup-user/backups/ `
        -SftpFingerprint 'SHA256:AbC123...'
  3. Type three secrets when it asks: the runtime admin password, the SFTP password and the backup encryption passphrase. The passphrase must be the one Site A's backups were made with, or the restore can't decrypt anything.

  4. It lists the components on the runtime and picks the services runtime one, which is the component with type vsp. If it can't find exactly one, it asks you for the id. In my lab the id was 6f50477a-99a2-4147-bb89-f2044ba4de9e. Yours will be different.

  5. It shows the current and new settings and asks you to confirm with YES, yes, Y or y. Anything else cancels without changing anything. In my lab the current settings came back blank, so there was nothing saved to compare with.

  6. Wait for Succeeded. It checks every 15 seconds. Mine took about four minutes. If it sits on Queued, something else is running on the runtime, and the script waits up to 30 minutes.

PowerShell running Set-ServicesRuntimeSftpSettings.ps1: it gets a token, lists the components, shows the current and new SFTP settings, and asks for confirmation

And the end of the same run, with the task reaching Succeeded:

The end of the script output: the task status changes from Pending to Running to Succeeded and the script prints that the services runtime now knows the SFTP server and its fingerprint

The script

It never prints your passwords, it shows the current settings before changing anything, and it does nothing until you confirm. Like the curl -k in Broadcom's examples, it skips certificate checks on the runtime, so try it in a lab before you use it anywhere else.

Show the full script
<#
.SYNOPSIS
    Pushes SFTP settings, including the SFTP server's SSH host-key fingerprint, to a
    VCF 9.1 services runtime (for example the recovery site's VCF management services
    instance) through the services runtime API. No VCF Operations GUI needed.

.DESCRIPTION
    Follows the same API flow Broadcom documents in "Apply SFTP Settings on VCF Automation"
    (VCF 9.1 recovery task library):
      1. POST /api/v1/identity/token                       (grant_type=password)
      2. GET  /api/v1/components                           (find the services runtime component)
      3. POST /api/v1/components/<id>?action=apply         (spec.configuration.backups...)
      4. GET  /api/v1/tasks/<taskId>                       (poll until finished)

    IMPORTANT: this REPLACES the services runtime's SFTP backup settings. Point it at the
    SFTP server that holds the backups you are about to restore, and use the encryption
    passphrase those backups were made with. The script shows the current settings and
    asks you to confirm (YES, yes, Y or y) before changing anything.

.EXAMPLE
    .\Set-ServicesRuntimeSftpSettings.ps1 `
        -ServicesRuntimeFqdn vsp-01b.site-b.bridgetocloud.net `
        -SftpHost 192.168.1.244 `
        -SftpUsername vcf-backup-user `
        -SftpDirectory /data/sftp/vcf-backup-user/backups `
        -SftpFingerprint 'SHA256:AbC123...'

.NOTES
    Written for Windows PowerShell 5.1 and PowerShell 7+ (tested in PowerShell 7). Skips TLS certificate checks
    for the services runtime, like the curl -k in Broadcom's examples. Test it in a
    lab before you rely on it in production.
#>
[CmdletBinding()]
param(
    [Parameter(Mandatory)] [string] $ServicesRuntimeFqdn,
    [Parameter(Mandatory)] [string] $SftpHost,
    [int] $SftpPort = 22,
    [Parameter(Mandatory)] [string] $SftpUsername,
    [Parameter(Mandatory)] [string] $SftpDirectory,
    [Parameter(Mandatory)]
    [ValidatePattern('^SHA256:[A-Za-z0-9+/=]+$')]
    [string] $SftpFingerprint,
    [string] $ComponentId,
    [string] $RuntimeUsername = 'admin',
    [int] $PollSeconds = 15,
    [int] $TimeoutMinutes = 30
)

$ErrorActionPreference = 'Stop'
$base = "https://$ServicesRuntimeFqdn"
$isPS7 = $PSVersionTable.PSVersion.Major -ge 6

# ---------- TLS: lab runtimes often use certificates this machine does not trust ----------
if (-not $isPS7) {
    if (-not ('TrustAllCertsPolicy' -as [type])) {
        Add-Type @'
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
    public bool CheckValidationResult(ServicePoint sp, X509Certificate cert, WebRequest req, int problem) { return true; }
}
'@
    }
    [Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
}

function Invoke-Vsp {
    param(
        [string] $Method,
        [string] $Path,
        $Body,
        [string] $ContentType = 'application/json',
        [hashtable] $Headers = @{}
    )
    $p = @{ Method = $Method; Uri = "$base$Path"; Headers = $Headers }
    if ($null -ne $Body) { $p.Body = $Body; $p.ContentType = $ContentType }
    if ($isPS7) { $p.SkipCertificateCheck = $true }
    Invoke-RestMethod @p
}

function ConvertTo-Plain([Security.SecureString] $Secure) {
    $ptr = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($Secure)
    try { [Runtime.InteropServices.Marshal]::PtrToStringBSTR($ptr) }
    finally { [Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ptr) }
}

function Get-Prop($Object, [string[]] $Names) {
    foreach ($n in $Names) {
        if ($null -ne $Object -and $Object.PSObject.Properties.Name -contains $n) { return $Object.$n }
    }
    return $null
}

# ---------- 0. Secrets (never echoed) ----------
$rtPass     = Read-Host "Services runtime password for '$RuntimeUsername'" -AsSecureString
$sftpPass   = Read-Host "SFTP password for '$SftpUsername'" -AsSecureString
$passphrase = Read-Host "Backup encryption passphrase (the one the backups you will restore were made with)" -AsSecureString

# ---------- 1. Token ----------
Write-Host "`n==> [1/4] Getting a token from $ServicesRuntimeFqdn"
$tokenResp = Invoke-Vsp -Method POST -Path '/api/v1/identity/token' `
    -ContentType 'application/x-www-form-urlencoded' `
    -Body @{ grant_type = 'password'; username = $RuntimeUsername; password = (ConvertTo-Plain $rtPass) }
$token = $tokenResp.access_token
if (-not $token) { throw "No access_token returned. Check the services runtime username and password." }
$auth = @{ Authorization = "Bearer $token" }
Write-Host "    Token OK."

# ---------- 2. Find the services runtime component ----------
Write-Host "`n==> [2/4] Listing components on $ServicesRuntimeFqdn"
$resp = Invoke-Vsp -Method GET -Path '/api/v1/components' -Headers $auth
$list = Get-Prop $resp @('items', 'components', 'content')
if ($null -eq $list) { $list = $resp }
$list = @($list)

$list | ForEach-Object {
    [pscustomobject]@{
        id      = Get-Prop $_ @('id', 'uuid')
        type    = Get-Prop $_ @('type', 'componentType', 'kind')
        name    = Get-Prop $_ @('name', 'displayName')
        version = Get-Prop $_ @('version')
    }
} | Format-Table -AutoSize | Out-String | Write-Host

if (-not $ComponentId) {
    # The services runtime (platform) component is the one with type 'vsp'.
    $vsp = @($list | Where-Object { (Get-Prop $_ @('type', 'componentType', 'kind')) -eq 'vsp' })
    if ($vsp.Count -eq 1) {
        $ComponentId = Get-Prop $vsp[0] @('id', 'uuid')
        Write-Host "    Using services runtime component $ComponentId (type vsp)."
    }
    else {
        $ComponentId = Read-Host "Enter the id of the services runtime (platform) component (type 'vsp') from the list above"
    }
}

# ---------- Show what is there now, and confirm ----------
$current = Invoke-Vsp -Method GET -Path "/api/v1/components/$ComponentId" -Headers $auth
$cfg = Get-Prop (Get-Prop $current @('spec')) @('configuration')
if ($null -eq $cfg) { $cfg = Get-Prop $current @('configuration') }
$sftpNow = Get-Prop (Get-Prop (Get-Prop $cfg @('backups')) @('storage')) @('sftp')

Write-Host "`n    Current SFTP settings on this component:"
if ($sftpNow) {
    Write-Host ("      host={0} port={1} user={2} directory={3}" -f $sftpNow.host, $sftpNow.port, $sftpNow.username, $sftpNow.directory)
    Write-Host ("      fingerprint={0}" -f $sftpNow.fingerprint)
}
else {
    Write-Host "      (could not read them from this component; the layout may differ)"
}
Write-Host "`n    New SFTP settings:"
Write-Host ("      host={0} port={1} user={2} directory={3}" -f $SftpHost, $SftpPort, $SftpUsername, $SftpDirectory)
Write-Host ("      fingerprint={0}" -f $SftpFingerprint)

$answer = Read-Host "`nReplace the SFTP settings on component $ComponentId? (YES/Y to continue)"
if ($answer.Trim() -cnotin @('YES', 'yes', 'Y', 'y')) { Write-Host "Cancelled. Nothing was changed."; return }

# ---------- 3. Apply ----------
Write-Host "`n==> [3/4] Applying SFTP settings"
$payload = [ordered]@{
    spec    = [ordered]@{
        configuration = [ordered]@{
            backups = [ordered]@{
                destination          = 'sftp'
                encryptionPassphrase = (ConvertTo-Plain $passphrase)
                storage              = [ordered]@{
                    sftp = [ordered]@{
                        directory   = $SftpDirectory
                        host        = $SftpHost
                        port        = "$SftpPort"
                        username    = $SftpUsername
                        password    = (ConvertTo-Plain $sftpPass)
                        fingerprint = $SftpFingerprint
                    }
                }
            }
        }
    }
    options = @{}
} | ConvertTo-Json -Depth 10

$task = Invoke-Vsp -Method POST -Path "/api/v1/components/${ComponentId}?action=apply" -Headers $auth -Body $payload
Remove-Variable payload -ErrorAction SilentlyContinue
$taskId = Get-Prop $task @('id')
if (-not $taskId) { throw "No task id returned. Response: $($task | ConvertTo-Json -Depth 5)" }
Write-Host "    Task submitted: $taskId"

# ---------- 4. Poll ----------
Write-Host "`n==> [4/4] Waiting for task $taskId (every $PollSeconds s, up to $TimeoutMinutes min)"
$deadline = (Get-Date).AddMinutes($TimeoutMinutes)
do {
    Start-Sleep -Seconds $PollSeconds
    $t = Invoke-Vsp -Method GET -Path "/api/v1/tasks/$taskId" -Headers $auth
    Write-Host ("    [{0:HH:mm:ss}] status: {1}" -f (Get-Date), $t.status)
} while ($t.status -in @('Pending', 'Queued', 'Running') -and (Get-Date) -lt $deadline)

if ($t.status -eq 'Succeeded') {
    Write-Host "`nDone. The services runtime now knows the SFTP server and its fingerprint." -ForegroundColor Green
}
elseif ($t.status -in @('Pending', 'Queued', 'Running')) {
    Write-Warning "Still '$($t.status)' after $TimeoutMinutes min. Another task may be running on this services runtime. Check again later: GET $base/api/v1/tasks/$taskId"
}
else {
    Write-Warning "Task ended with status '$($t.status)'. Details:"
    $t | ConvertTo-Json -Depth 10 | Write-Host
}

Step 3: run the restore again

Run the same restore with the same payload. The fingerprint error should be gone.

Restore-ServicesRuntimeComponentBackup `
    -ServicesRuntimeFqdn vsp-01b.site-b.bridgetocloud.net `
    -ServicesRuntimePassword $ServicesRuntimePassword `
    -RestoreJsonFile ".\restore-payload.json"

Read every per-component status line. The restore can report Succeeded at the end while individual components show Failed along the way. To see the download actually happening, look for a download-from-sftp pod on one of the runtime nodes:

crictl pods | grep download-from-sftp | head

Step 4: point the backups back at the original SFTP server

When the failover is complete, undo the change from step 2. Run Set-ServicesRuntimeSftpSettings.ps1 against the recovery runtime again, this time with the original SFTP server's host, user, directory and fingerprint, the settings you wrote down before step 2. Use the encryption passphrase the recovery site normally backs up with. In my lab the script showed blank settings before step 2, so there was nothing to copy; in that case use the backup location configured for the recovery site's VCF Instance in VCF Operations.

A good time to do this is alongside the failover plan's own Update Backup Schedule Configuration for Recovered Components step, so the backup settings and schedule are reviewed together. Then check that the next backup actually lands on the original SFTP server.

If you use the VCF Recovery Coordinator

I hit the same error again on 1 December 2026 running the Failover Fleet Components plan in the VCF Recovery Coordinator (module VCF.RecoveryCoordinator 9.1.2.1002). The Restore VCFMS Backups task failed with the same message, and the run stopped.

The fix was the same: I ran Set-ServicesRuntimeSftpSettings.ps1 against vsp-01b from a separate PowerShell window, then selected Run Plan in the Coordinator instead of running the restore by hand. The Coordinator skips the tasks already marked Done and runs Restore VCFMS Backups again, and this time it completed. If you restore by hand instead, the Coordinator still shows the task as Failed and runs it again on the next Run Plan.

If it still doesn't work

What you see Likely cause Fix
No access_token returned Wrong runtime admin password Run it again and retype the password
Apply task ends Failed with a host key error Wrong fingerprint: a typo, a missing SHA256:, or the other key type Redo step 1 and paste the whole value
"Server host key validation failed" SFTP on a port other than 22 Use port 22 (KB 448206)
Apply task stays Queued Another task is running on the runtime Let it finish. The script waits 30 minutes
Fingerprint error comes back The script ran against a different runtime Check -ServicesRuntimeFqdn points at the recovery runtime
Components fail with Curl exit code: 60 The runtime doesn't trust your offline depot's root CA A separate problem. Add the depot's root CA to the services runtime's trust, then run the restore again

What I'll do next time

The recovery site can only restore from an SFTP server it already knows, so I'm sorting that out before the disaster, not in the middle of a DR test. My runbook now has:

  • The SFTP server's SHA256:... fingerprint, checked on the server itself.
  • The backup encryption passphrase stored somewhere I can still reach when the protected site is down.
  • Set-ServicesRuntimeSftpSettings.ps1 kept next to the runbook, to run before the fleet restore.
  • The recovery runtime's original SFTP settings and fingerprint recorded, so I can point its backups back once the failover is done.
  • Or, point both sites at one SFTP server outside both sites ahead of time, so the recovery runtime already knows it.
  • A design check before the test: a backup location configured for both VCF Instances in VCF Operations (VCF-PB-DR-REQD-023), and the protected site's backups reachable on the recovery site's SFTP server, either the same server or a replicated copy (VCF-PB-DR-REQD-024).
  • A rehearsal. A DR test is the cheapest place to find this error.

Sources

Related guides