{"id":21615076,"url":"https://github.com/eea/eea.docker.scp-server","last_synced_at":"2026-05-22T14:02:11.011Z","repository":{"id":137839648,"uuid":"55856778","full_name":"eea/eea.docker.scp-server","owner":"eea","description":"Restricted SSH server which allows SCP / SFTP access only. This image is meant to be used together with the httpd:2.4 image","archived":false,"fork":false,"pushed_at":"2016-04-15T09:17:37.000Z","size":4,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-24T20:42:53.172Z","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/eea.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-09T17:08:49.000Z","updated_at":"2022-06-05T20:38:47.000Z","dependencies_parsed_at":"2023-04-17T03:55:39.827Z","dependency_job_id":null,"html_url":"https://github.com/eea/eea.docker.scp-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Feea.docker.scp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Feea.docker.scp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Feea.docker.scp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Feea.docker.scp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eea","download_url":"https://codeload.github.com/eea/eea.docker.scp-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244266091,"owners_count":20425825,"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-24T22:10:28.216Z","updated_at":"2026-05-22T14:02:05.979Z","avatar_url":"https://github.com/eea.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"SCP server\n==========\n\nRestricted SSH server which allows SCP / SFTP / RSYNC access only. This image is meant to provide an ability to update content in data containers. You would normally make a constellation of your service, a data container, and the scp-server container.\n\nThe scp-server container is configured at runtime with environment variables to match the configuration of the main service. The environment variables are:\n\n* AUTHORIZED_KEYS - contains the public SSH keys for the users who will be allowed to upload.\n* DATADIR - The location where relative paths start from.\n* USERID - The numeric id of the `data` account. Defaults to 33.\n* GROUPID - The numeric id of the `data` group. Defaults to 33.\n\nOriginal code and idea is from https://github.com/gituser173/docker-scp-server.\n\nRunning\n-------\n\nIt is easiest if you use docker-compose. Then you can specify the authorized SSH keys in a block declaration:\n\ndocker-compose.yml file:\n```\nscpserver:\n  image: eeacms/scp-server\n  ports:\n  - \u003cPORT\u003e:22\n  environment:\n    AUTHORIZED_KEYS: |\n      ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA4FhFro3H....vg0hrC3s0= My First CERT\n      ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAteQ38qb7....uC839w== Second authorized key \n    DATADIR: /usr/local/apache2/htdocs\n    USERID: 500\n    GROUPID: 500\n  volumes_from:\n  - htdocs\n\nhttpd:\n  image: httpd\n  ports:\n  - 80:80\n  volumes_from:\n  - htdocs\n\nhtdocs:\n  image: tianon/true\n  volumes:\n  - \u003cDATADIR\u003e:/usr/local/apache2/htdocs\n```\n\nWhen started you can upload data into the container (e.g. via scp) as the `data` user:\n\n    scp -P \u003cPORT\u003e \u003cFILE\u003e data@\u003cDOCKER-HOST\u003e:\n    sftp -P \u003cPORT\u003e data@\u003cDOCKER-HOST\u003e\n    rsync --rsh=\"ssh -p \u003cPORT\u003e\" \u003cFILE\u003e data@localhost:\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feea%2Feea.docker.scp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feea%2Feea.docker.scp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feea%2Feea.docker.scp-server/lists"}