Jump to content

ssh sftp Passwordless Key Datei wird nicht erkannt / known_hosts


tom233

Recommended Posts

Posted

Hallo,

ich habe testweise  Restic auf einer VM  Dietpi ausprobiert.

In der VM  gibt es die Config Datei 

 

Host hs
    HostName 007.your-storagebox.de
    User 007
    PubKeyAuthentication yes
    IdentityFile ~/.ssh/hetzner_storage1 
    Port 23
    ServerAliveInterval 60
    ServerAliveCountMax 240

 

Jetzt ist Restic über das Nerd Tool in Unraid,  leider bekomme ich keine Verbindung  über SFTP

 

restic -r sftp:hs:/home/backup/restic snapshots
 

 

Die Config Datei  ist jetzt unter /boot/config/ssh/root/config

 

Host hs
    HostName 007.your-storagebox.de
    User 007
    PubKeyAuthentication yes
    IdentityFile /boot/config/ssh/root/hetzner_storage1
    Port 23
    ServerAliveInterval 60
    ServerAliveCountMax 240

 

Unraid erkennt zwar die config  mit den Angaben  aber ich bekomme die Meldung das er die Datei hetzner_storage1 nicht findet.

 

Aus Frust habe ich die known_host ( die Datei gab es vorher nicht ) gelöscht.

Heute morgen habe ich einen neuen Versuch gestartet  und die Known_Host wurde neu erstellt aber mit der Fehler -Meldung

 

 

root@ostsee:~# restic -r sftp:hs:/home/backup/restic snapshots
subprocess ssh: hostfile_replace_entries: link /root/.ssh/known_hosts to /root/.ssh/known_hosts.old: Operation not permitted
subprocess ssh: update_known_hosts: hostfile_replace_entries failed for /root/.ssh/known_hosts: Operation not permitted
enter password for repository: 

 

Vielen Dank

thomas

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...