When configuring or updating the SFTP server settings for NSX Manager Backups using SSH Private Key authentication (System > Backup & Restore > Backup Configuration):
Clicking Save causes the UI modal to hang indefinitely with a spinning loading indicator.
After a timeout or browser refresh, saving the configuration results in the following error:
Error: Backup error: Authentication failed on fileserver sftp://<sftp-server-fqdn>:22/path/to/backup/. Either private key is not valid or public key is not configured on fileserver. (Error code: 29117)
In some instances, the Backup History table under System > Backup & Restore remains empty or fails to populate previous backup entries.
VMware NSX 4.x
VMware NSX-T Data Center 3.x
This issue occurs due to one or more of the following conditions:
To resolve this issue, generate a new unencrypted Legacy RSA key pair.
ssh-keygen -t rsa -b 2048 -m PEM -N "" -f ~/.ssh/nsx_backup_key
cat ~/.ssh/nsx_backup_key.pub >> ~/.ssh/authorized_keyschmod 700 ~/.sshchmod 600 ~/.ssh/authorized_keyscat ~/.ssh/nsx_backup_key