Automated Backups Failing via SCP
Automated Backups are failing with SCP even when the same public/private SSH keys work in other systems.
Followed the instructions from: https://support.kemptechnologies.com/hc/en-us/articles/14337584526861-Backup-and-Restore (SCP section).
Have tested logging into the Debian backups system from another server using the exported SSH key and it works. However the LoadMaster is reporting this error in the log:
2023-07-31T11:01:40-04:00 VLM logger: Automated Backup to <IP Address/Hostname> (scp) returned 1 "Load key "/tmp/id.29136/ident": invalid format <user@server's IP/Hostname>: Permission denied (publickey,password). lost connection"
|Steps to Reproduce:|
2023-07-31T11:01:40-04:00 VLM logger: Automated Backup to <IP Address/Hostname> (scp) returned 1
|Cause:||The SSH private was imported into the LoadMaster in a .txt format.|
|Resolution:||Changing the format of the SSH private key and can cause SSH authentication attempts to fail. Copying the private key into a text file and importing into the LoadMaster returns the following log when automated backups are tested:
2023-07-31T11:01:40-04:00 VLM logger: Automated Backup to <IP Address/Hostname> (scp) returned 1To fix this, the SSH key must be exported from the server so it does not change the format using the following command:
After this SSH key is imported into the LoadMaster, the automated backups using SCP should be successful: