ikifar2012 / remote-backup-addon

Automatically create and backup HA snapshots using SCP
30 stars 4 forks source link

Don't assume RSA key & support ed25519 keys #125

Closed voltagex closed 6 months ago

voltagex commented 6 months ago
[16:56:02] INFO: Adding SSH configuration.
Load key "/root/.ssh/id_rsa": error in libcrypto

[16:56:02] INFO: Creating non-encrypted full backup: "Automated backup 2023-12-17 16-56"
[16:56:10] INFO: Backup created: 88c34e30
[16:56:10] INFO: Copying backup using SFTP/SCP.
Load key "/root/.ssh/id_rsa": error in libcrypto

[16:56:13] WARNING: SFTP transfer failed, falling back to SCP: Invalid/incorrect password
Load key "/root/.ssh/id_rsa": error in libcrypto

My key is an ed25519 key.

voltagex commented 6 months ago

For some reason this happened because my key was missing a linebreak (\n) at the end of the file.