Unable to open repository

Hello everyone,

I’m new to restic. I’ve created a repo on a remote machine over IPv6 like this:

restic -r sftp://user@[XXXX:xxxx:...:XXXX]:22//home/user/cloudbackup init

This works fine.

I store the pw in an environmental variable like:

export RESTIC_PASSWORD="XXXXXXXXXXXXXXXXXXXXXXXX"

Then I try to back up some files on the client:

sudo restic -r sftp:user@XXXX:....:XXXX:/home/user/cloudbackup --verbose backup /opt/ncdata/data/user/files/Documents/signature.pdf

and I get this output in the terminal:

open repository
Fatal: unable to open repository at sftp:user@XXXX....XXXX:/home/user/cloudbackup: unable to start the sftp session, error: EOF

Any idea what I can do here to fix this?

Any help is very much appreciated! Thank you!

1 Like

I think i solved it:

By using the sudo command from my user, the root didn’t have access to my ssh keys.

4 Likes