{"id":18356232,"url":"https://github.com/cimlah/docker-debian-sftp","last_synced_at":"2026-05-10T07:39:26.138Z","repository":{"id":122749736,"uuid":"392584936","full_name":"Cimlah/docker-debian-sftp","owner":"Cimlah","description":"docker-debian-sftp is a Docker container running sftp server","archived":false,"fork":false,"pushed_at":"2022-01-24T13:49:15.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T09:06:42.666Z","etag":null,"topics":["bash","bash-script","docker","docker-compose","sftp","sftp-server"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cimlah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-04T07:02:08.000Z","updated_at":"2022-09-02T08:37:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc9ecfa5-0d45-4682-9ff7-5a6d4383597a","html_url":"https://github.com/Cimlah/docker-debian-sftp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Cimlah/docker-debian-sftp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cimlah%2Fdocker-debian-sftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cimlah%2Fdocker-debian-sftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cimlah%2Fdocker-debian-sftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cimlah%2Fdocker-debian-sftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cimlah","download_url":"https://codeload.github.com/Cimlah/docker-debian-sftp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cimlah%2Fdocker-debian-sftp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261841955,"owners_count":23217913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","docker","docker-compose","sftp","sftp-server"],"created_at":"2024-11-05T22:09:21.860Z","updated_at":"2025-10-31T09:43:14.507Z","avatar_url":"https://github.com/Cimlah.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-debian-sftp\n\n**!UPDATE!** docker-debian-sftp now has support for other architectures \u003cbr/\u003e \u003cbr/\u003e\n**docker-debian-sftp** has support for: `amd64`, `i386`, `arm64` and `armv7`. \u003cbr/\u003e\n**Filestash** still only has support for `amd64` (not up to me, because it's not my project). If you work on arm port of Filestash, please let me know. \u003cbr/\u003e \u003cbr/\u003e\nGitHub: https://github.com/Cimlah/docker-debian-sftp \u003cbr/\u003e\nDockerHub: https://hub.docker.com/repository/docker/cimlah/docker-debian-sftp\n\n# What is it?\nDocker-debian-sftp is a Docker container running sftp server.\nNot only you get isolation from the side of Docker, but also there is chroot in sshd_config set-up. \u003cbr/\u003e\nIt is meant to run alongside with [Filestash](https://github.com/mickael-kerjean/filestash), but can very simply edit *docker-compose.yml* not to use Filestash.\n\n# How to use it?\n**First of all, choose proper *docker-compose.yml* file for your architecture (either *docker-compose_amd64.yml* or *docker-compose_other-architectures.yml*) and rename it to *docker-compose.yml*.** \u003cbr/\u003e\nWhile in main directory of this repo, you can simply execute command: `docker-compose up -d` or copy content of my *docker-compose.yml*:\n\n``` yml\nversion: '3.3'\n\nservices:\n    debian-sftp:\n        image: cimlah/docker-debian-sftp:latest\n        restart: unless-stopped\n        hostname: debian-sftp\n        container_name: debian-sftp\n        ports:\n            - \"2800:22\"\n        stdin_open: true\n        tty: true\n        volumes: \n            - /path/you/want/to/use:/home\n\n    filestash:\n        image: machines/filestash\n        restart: unless-stopped\n        hostname: filestash\n        container_name: filestash\n        ports:\n            - \"8334:8334\"\n        environment: \n            - APPLICATION_URL=\n            - GDRIVE_CLIENT_ID=\u003cgdrive_client\u003e\n            - GDRIVE_CLIENT_SECRET=\u003cgdrive_secret\u003e\n            - DROPBOX_CLIENT_ID=\u003cdropbox_key\u003e\n            - ONLYOFFICE_URL=http://onlyoffice\n```\n\n## Don't want to use filestash or don't use amd64 architecture?\nIf you don't want to use Filestash just delete lines of code associated with filestash service or copy:\n\n``` yml\nversion: '3.3'\n\nservices:\n    debian-sftp:\n        image: cimlah/docker-debian-sftp:latest\n        restart: unless-stopped\n        hostname: debian-sftp\n        container_name: debian-sftp\n        ports:\n            - \"2800:22\"\n        stdin_open: true\n        tty: true\n        volumes: \n            - /path/you/want/to/use:/home\n```\n\n## Remember, change mount point, or delete it completely if you don't want to mount anything\n\nRemember to change line: ` - /path/you/want/to/use:/home`, so the files from *debian-sftp* container get mounted in a place you want. It is good to mount in case something happens to container, if so you still have access to all files located in this container.\n\n## How to create users?\nI wrote a simple script called *user_add.sh*, which creates users and sets proper permission for their files. \u003cbr/\u003e\nIf you want to use it, you can execute command from your host OS: `docker exec -it debian-sftp user_add`, write user name and password when asked to do so. Another way is to get inside container (e. g. `docker exec -it debian-sftp bash`) and there execute `user_add`. \u003cbr/\u003e\nPlease, read my script to know what permissions are set by it.\n\n# Can I customise it for my needs?\nOf course, if you want to change something, for example in *sshd_config*, do it and then build the image yourself. In directory *build_it_yourself* you have everything needed to customise and build the image. \u003cbr/\u003e\nTo build the image, execute command: `docker build -t *name of your image* .` while you're inside *build_it_yourself* directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimlah%2Fdocker-debian-sftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcimlah%2Fdocker-debian-sftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimlah%2Fdocker-debian-sftp/lists"}