YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 23 forks source link

Passphrase problem... #54

Closed Thatoo closed 3 years ago

Thatoo commented 3 years ago

Hello,

When I do this command BORG_RSH="ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes " borg list servera@host.serverb:~/backup

as expected, it asks me the passphrase but when I write it, it doesn't work. I first thought it I made a mistake so I went to check in this file sudo nano /etc/yunohost/hooks.d/backup_method/05-borg_app and BORG_PASSPHRASE="xxxxx" xxxxx is exactly what I wrote when the passphrase was requested.

Where am I wrong? What should I do?

KvL159 commented 3 years ago

I think I have similar issue, I used the following command :

ssh -i /root/.ssh/id_borg_ed25519 -v servera@host.serverb.dmn

It first tried to use SSH key to login and then asks for a user password, which from my understanding should only use SSH key for login and not password.

The password that we define during setup is to encrypt the backup before upload and the remote server doesn't access this password, right ?

It seem I'm not able to SSH the remote server (with borg server), any suggestions?

Thatoo commented 3 years ago

I have solved my problem thanks to Mamie in here https://forum.yunohost.org/t/passphrase-problem-with-borg-backup-app-for-yunohost/12863/2