What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.10
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Rien de spécial
Describe your issue
J’ai deux serveurs qui envoient les backups l’un vers l’autre.
Depuis le 23/12/2024, les backups ne marchent plus.
Yunohost est à jour. Les applications sont à jour (borg y compris).
Share relevant logs or error messages
Dans les logs, j’ai ce messages :
2025-01-18 09:38:28,168: WARNING - Remote: No ED25519 host key is known for [serverB.be]:PORT and you have requested strict checking.
2025-01-18 09:38:28,170: WARNING - Remote: Host key verification failed.
Le script de backup utilise ces lignes :
if ssh-keygen -F "serverB.be" >/dev/null ; then
BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes "
else
BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=no "
fi
J’ai bien une clé ssh à cet emplacement :
root@serverA:# ls -al /root/.ssh/id_${app}_ed25519
-rw------- 1 root root 411 Aug 10 2020 /root/.ssh/id_borg_ed25519
Je ne comprends pas pourquoi il ne veut pas l’utiliser.
[Edit: J’essaye de comprendre. J’ai essayé de changer l’option “StrictHostKeyChecking” et mettre à “no” :
root@serverA:# app=borg; BORG_PASSPHRASE="$(yunohost app setting $app passphrase)" BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -p PORT -oStrictHostK
eyChecking=no " $borg list ssh://userA@serverB.be/~/backup
Remote: Warning: Permanently added '[serverB.be]:PORT' (ED25519) to the list of known hosts.
Remote: Traceback (most recent call last):
Remote: File "/var/www/borgserver/venv/bin/borg", line 5, in <module>
Remote: from borg.archiver import main
Remote: ModuleNotFoundError: No module named 'borg'
Connection closed by remote host. Is borg working on the server?
Le problème évolue… Il faut simplement autoriser la clé SSH pour passer à l’étape suivante. Sur le deuxième serveur, j’ai fait comme ça :
# ssh -p PORT -i /root/.ssh/id_borg_ed25519 serverB@serverA.be
The authenticity of host '[serverA.be]:PORT ([5.196.88.19]:PORT)' can't be established.
ED25519 key fingerprint is SHA256:C7RGzit(...).
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[serverA.be]:PORT' (ED25519) to the list of known hosts.
Maintenant, l’erreur importante semble être :
ModuleNotFoundError: No module named 'borg'
Une idée pour continuer à avancer ?