-
Notifications
You must be signed in to change notification settings - Fork 0
SFTP
Beau Barker edited this page Jul 19, 2025
·
6 revisions
Generate public and private keys for the host (use no passphrase):
mkdir -p keys/{host,user}
ssh-keygen -t ed25519 -f keys/host/ssh_host_ed25519_key < /dev/null
ssh-keygen -t rsa -b 4096 -f keys/host/ssh_host_rsa_key < /dev/nullAdd an sftp service to compose.yaml:
sftp:
image: atmoz/sftp
command: user:pass:1001
volumes:
- ./keys/host/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key
- ./keys/host/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
- ./keys/user:/home/user/.ssh/keys
- sftp_data:/home/user/uploadAdd to the caddy/Caddyfile: