Can't create repo (sftp) - restic cat config error
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.
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!
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.