Backup configuration on SSP or SSP-I may fail with errors related to establishing an SFTP connection.
Common error messages:
Case 1:
Failed to create SFTP client. Error: error creating sftp connection to server.sftp: sftpConnect: ssh: handshake failed:ssh: unable to authenticate, attempted methods [none publickey], no supported methods remainOn the SFTP server,
/var/log/securemay show:Connection closed by authenticating user backupadmin ... [preauth]error: kex_exchange_identification: Connection closed by remote host
Case 2:
Security Services Platform (SSP)
Version: 5.0
There are two common causes for SFTP backup failures:
User Key Authentication Issue
The SFTP user account (e.g., backupadmin) did not have a valid .ssh directory or authorized_keys file in its home directory.
Without this, SSP cannot authenticate using the configured public key.
Host Key Mismatch
The wrong public key was provided in SSP during backup configuration.
Instead of the SFTP host’s SSH key (e.g., /etc/ssh/ssh_host_ecdsa_key.pub), a user’s public key (e.g., /home/<user>/.ssh/id_rsa.pub) was mistakenly used.
SSP requires the server’s host key for establishing the connection, not the client user’s key.
.ssh Directory Missing
SSH into the SFTP server.
Verify the backup user exists and has a home directory:
Switch to the backup user:
Create the
.sshdirectory:Add the SSP public key to
authorized_keys:Retry the backup configuration.
Connect to the SFTP server and navigate to the SSH configuration directory:
Identify the correct host key file (e.g.,
ssh_host_ecdsa_key.pub).Copy the contents of the host public key file.
In the SSP Backup & Restore configuration, replace the incorrect key with the correct host public key.
Save and retry the backup configuration.
Once the correct host key is used, SSP can successfully establish an SFTP connection and complete backup configuration.
Please refer to the technical documentation for more information about the configuration: https://techdocs.broadcom.com/us/en/vmware-security-load-balancing/vdefend/security-services-platform/5-0/onboarding-and-managing-platform/backup-and-restore-ssp/backup-and-restore.html