backrest icon indicating copy to clipboard operation
backrest copied to clipboard

Can't create repo (sftp) - restic cat config error

Open flimofly opened this issue 4 months ago • 2 comments

Describe the bug When a repo is created over sftp, the following error message pops up:

unknown] command "/bin/restic cat config -o sftp.args=-oBatchMode=yes" failed: exit status 1
Output:
subprocess ssh: Host key verification failed.
Fatal: unable to open repository at sftp:[email protected]:/Backup/restic: unable to start the sftp session, error: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF

To Reproduce

Repository URI: sftp:[email protected]:/Backup/restic Password generated by Backrest Everything else set to default

Connection to remote server succeeds via CLI (ssh and sftp).

Using the -v flag I have the impression (output truncated) that the connection also succeeds in Backrest. Nonetheless the error keeps showing up.

I can create the repo via CLI but when I enter the generated repo name and password in Backrest, the same error returns. Clicking Submit is not possible.

flimofly avatar Aug 19 '25 22:08 flimofly

You should follow the steps described in https://github.com/garethgeorge/backrest/issues/620 to make this connection to not require password or any user interaction. I followed that and it worked great!

humitos avatar Sep 05 '25 13:09 humitos

Want to note that there's also an SSH / SFTP guide at https://garethgeorge.github.io/backrest/cookbooks/ssh-remote/ which is largely focused on docker-compose installs but some of the advice should be general.

garethgeorge avatar Sep 07 '25 07:09 garethgeorge