chore: update troubleshooting SFTP documentation (#1094)
Docs / build (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Docs / deploy (push) Has been cancelled
Update Restic / update-restic-version (push) Has been cancelled

This commit is contained in:
Matteo Carotta
2026-01-29 22:08:11 -08:00
committed by GitHub
parent a2f5e775b7
commit 541e13b5bf
+14 -3
View File
@@ -116,10 +116,21 @@ docker compose up -d --force-recreate
## Troubleshooting
- **Connection Errors:** First, test your SSH connection from the host machine to isolate issues. This command uses the exact same configuration files that the container will use.
```bash
- **Connection Errors:**
First, test your SSH connection from the host machine to isolate issues. This command uses the exact same configuration files that the container will use.
```bash host
# This command should connect without asking for a password
ssh -F ./backrest/ssh/config backrest-remote
ssh -vF ./backrest/ssh/config -o UserKnownHostsFile=./backrest/ssh/known_hosts backrest-remote
# -o UserKnownHostsFile ensures that ssh uses ony the public keys passed to the backrest container instead of the global public keys of the host.
```
Attempt connection to the server from the container and compare the results :
```bash host
# From the host open a bash terminal to the backrest container
docker exec -it backrest bash
```
```bash container
# Attempt to connect to the server via ssh. If prompt abort the command, saved keys would be ephemeral.
ssh -vF /root/.ssh/config backrest-remote
```
- **Permission Denied:**
- Double-check the file permissions set in Step 5.