{"id":18432541,"url":"https://github.com/micheljung/scp-server","last_synced_at":"2026-02-16T20:03:54.188Z","repository":{"id":92877816,"uuid":"408555589","full_name":"micheljung/scp-server","owner":"micheljung","description":"Restricted SSH server which allows SCP/SFTP/RSYNC access only, based on alpine.","archived":false,"fork":false,"pushed_at":"2021-09-20T19:54:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T05:13:20.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micheljung.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-09-20T18:23:08.000Z","updated_at":"2021-09-20T19:53:50.000Z","dependencies_parsed_at":"2023-04-11T11:57:36.023Z","dependency_job_id":null,"html_url":"https://github.com/micheljung/scp-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/micheljung/scp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheljung%2Fscp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheljung%2Fscp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheljung%2Fscp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheljung%2Fscp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micheljung","download_url":"https://codeload.github.com/micheljung/scp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheljung%2Fscp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29516956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-06T05:28:53.181Z","updated_at":"2026-02-16T20:03:54.156Z","avatar_url":"https://github.com/micheljung.png","language":"Dockerfile","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 1000.\n* GROUPID - The numeric id of the `data` group. Defaults to 1000.\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```\nversion: '3.9'\n\nscpserver:\n  image: eeacms/scp-server\n  ports:\n    - \u003cPORT\u003e:22\n  environment:\n    AUTHORIZED_KEYS: |\n      ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA4FhFro3H....vg0hrC3s0= First key\n      ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAteQ38qb7....uC839w== Another key \n    DATADIR: /data\n    USERID: 1000\n    GROUPID: 1000\n  volumes:\n    - data\n  \nvolumes:\n  data:\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%2Fmicheljung%2Fscp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicheljung%2Fscp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheljung%2Fscp-server/lists"}