{"id":19114645,"url":"https://github.com/aligator/sftp-docker","last_synced_at":"2025-07-02T02:01:50.975Z","repository":{"id":54326527,"uuid":"335061338","full_name":"aligator/sftp-docker","owner":"aligator","description":"A simple sftp service using docker.","archived":false,"fork":false,"pushed_at":"2021-02-23T21:33:43.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-28T04:38:06.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/aligator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-01T19:31:30.000Z","updated_at":"2021-02-23T21:32:11.000Z","dependencies_parsed_at":"2022-08-13T12:10:09.332Z","dependency_job_id":null,"html_url":"https://github.com/aligator/sftp-docker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aligator/sftp-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligator%2Fsftp-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligator%2Fsftp-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligator%2Fsftp-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligator%2Fsftp-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aligator","download_url":"https://codeload.github.com/aligator/sftp-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aligator%2Fsftp-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263061400,"owners_count":23407604,"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":[],"created_at":"2024-11-09T04:44:06.585Z","updated_at":"2025-07-02T02:01:50.798Z","avatar_url":"https://github.com/aligator.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SFTP for docker\n\nThis is a small docker image which just provides a simple sftp server.\nIt starts sshd but disables normal ssh access. Instead you can mount any data at /ssh-home/data\nwhich will be accessible using sftp.\n\nCurrently it does only provide access using private keys because for me there was no need for\nusername + password, but this would be very easy to implement if needed...\n\n## Usage\n\nJust see the example docker-compose.yml it basically shows everything you need:\n* expose port 22\n* mount data to /ssh-home/data\n* mount override to /override\n* set the environment variables for uid, gid and username\n\nThen you just need to provide any public keys by creating a `overwrite/authorized_keys` file.\nIt will be copied (if it exists) into the container on each start. That way you can also edit it and with the next\nrestart it will be copied into the container.\n\nSimilar to that you can also provide a custom `overwrite/sshd_config` file which will also be treated the same way to \ninject a custom sshd config into the container.\n\nThe host keys get built automatically on the first start. But you can also run `cd overwrite \u0026\u0026 ./genHostKeys.sh` to \neven preserve the keys on container rebuilt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faligator%2Fsftp-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faligator%2Fsftp-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faligator%2Fsftp-docker/lists"}