Score:0

Where does atmoz/sftp store the files?

dk flag
Sig

After setting up atmoz/sftp via Docker, where, in the container, am I supposed to find the uploaded files?

I have tried different compose files (see below) but:

1- Can't find the uploaded files. 2- With all the below configurations when I connect from a local client, I see the same directory.

version: '3.7'

services:
  sftp:
    container_name: sftp
    image: atmoz/sftp:alpine
    expose:
      - 22
    ports:
      - 22:22
    command:
      - user:pass:1001
    volumes:
      - /usr/sftp/data:/home/user/upload
      - /usr/sftp/keys/ssh_host_rsa_key.pub:/home/user/.ssh/ssh_host_rsa_key.pub:ro
      - /usr/sftp/keys/ssh_host_ed25519_key.pub:/home/user/.ssh/ssh_host_ed25519_key.pub:ro
version: '3.7'

services:
  sftp:
    container_name: sftp
    image: atmoz/sftp:alpine
    expose:
      - 22
    ports:
      - 22:22
    command:
      - user:pass:1001::/home/user/upload
    volumes:
      - /usr/sftp/data:/home/user/upload
      - /usr/sftp/keys/ssh_host_rsa_key.pub:/home/user/.ssh/ssh_host_rsa_key.pub:ro
      - /usr/sftp/keys/ssh_host_ed25519_key.pub:/home/user/.ssh/ssh_host_ed25519_key.pub:ro

I see this from the client (test.txt is the file I just copied).

enter image description here

And this is persisted with different containers (I run up and down several times, and test.txt is always there when I connect via the client).

This is what I get when accessing the container.

enter image description here

/home/user/upoload is empty. enter image description here

Tom Newton avatar
cn flag
As an variant you can explore path `/home/user/upload` as stated in loutput above. Explain in more details if I understand it not clearly.
dk flag
Sig
@TomNewton Thanks for the reply. `/home/user/upload` is empty (see above). There is no trace of `test.txt` or all the other dotfiles.
Tom Newton avatar
cn flag
`when I connect via the client` And which path is there in settings or command in the client software? If there is switched on the logging in the client - it is worth to check it too
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.