Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

Automated Backups Failing via SCP

 

Information

 

Summary:

Automated Backups are failing with SCP even when the same public/private SSH keys work in other systems.

Environment:

Product: LoadMaster.

Version: Any.

Platform: Any.

Application: Any.

Question/Problem Description:

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:  
Error Message:
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"
Defect Number:  
Enhancement Number:  
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 1 
"Load key "/tmp/id.29136/ident": invalid format <user@server's IP/Hostname>: Permission denied (publickey,password). lost connectio
To fix this, the SSH key must be exported from the server so it does not change the format using the following command:
scp testuser@10.10.10.10:/home/testuser/.ssh/id_rsa .

This translates to:

scp user@<server's IP/hostname>:<path where the private key is located in the SSH server> <path to save the key file in the local machine>
After this SSH key is imported into the LoadMaster, the automated backups using SCP should be successful:
2023-07-31T11:05:53-04:00 VLM logger: Automated Backup to <server's IP/Hostname> (scp) was successful
Workaround:  
Notes: https://support.kemptechnologies.com/hc/en-us/articles/14337584526861-Backup-and-Restore

Was this article helpful?
0 out of 0 found this helpful

Comments