{"id":20945346,"url":"https://github.com/zas/docker-rsyncssh","last_synced_at":"2025-10-13T00:48:37.583Z","repository":{"id":148673288,"uuid":"61559559","full_name":"zas/docker-rsyncssh","owner":"zas","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-20T18:27:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T04:23:03.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/zas.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-06-20T15:42:34.000Z","updated_at":"2016-06-20T15:42:58.000Z","dependencies_parsed_at":"2023-05-28T15:30:17.059Z","dependency_job_id":null,"html_url":"https://github.com/zas/docker-rsyncssh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zas/docker-rsyncssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zas%2Fdocker-rsyncssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zas%2Fdocker-rsyncssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zas%2Fdocker-rsyncssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zas%2Fdocker-rsyncssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zas","download_url":"https://codeload.github.com/zas/docker-rsyncssh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zas%2Fdocker-rsyncssh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308625,"owners_count":25965654,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-18T23:47:46.162Z","updated_at":"2025-10-04T11:54:47.816Z","avatar_url":"https://github.com/zas.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh+rsync Docker image\n\nOnce configured to accept one or more ssh keys, it will permit one to use rsync+ssh to store data or to read data to/from the docker container.\n\nThe container is exporting:\n* port 22 (for ssh connections)\n* `/data` volume\n\n## Build image\n\n```\ndocker build --rm -t ssh-rsync-image .\n```\n\n## Run the container\n\n* First you need to create at least one ssh key (without passphrase)\n\n```\nssh-keygen -t rsa -f ~/.ssh/id_rsa_rsync -N ''\n```\n\n* Run the container:\n\n```\ndocker run -itdP -p 22222:22 -v ~/data:/data -e AUTHORIZED_KEYS=\"rw:`cat ~/.ssh/id_rsa_rsync.pub`\" --name ssh-rsync-server ssh-rsync-image\n```\n\n* Check logs:\n\n```\ndocker logs ssh-rsync-server \n```\n\n## Use\n\n* Rsync local `/etc` to remote `/data/etc` (note: all paths are always relative to `/data`)\n\n```\nrsync -av -e \"ssh -i $HOME/.ssh/id_rsa_rsync -p 22222\" /etc root@127.0.0.1:/\n```\n\n\n## About authorized keys:\n\n* each key has to be prefixed by rw: or ro:, repectively for read+write access or read-only access\n* multiple keys can be specified, separated by \",\" (commas)\n\nExemple: `AUTHORIZED_KEYS=\"rw:myfirstkey, ro:mysecondkey\"`\n\n\n\nInspired by:\n* https://github.com/tutumcloud/authorizedkeys\n* https://github.com/Thrilleratplay/docker-ssh-rsync\n* https://www.guyrutenberg.com/2014/01/14/restricting-ssh-access-to-rsync/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzas%2Fdocker-rsyncssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzas%2Fdocker-rsyncssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzas%2Fdocker-rsyncssh/lists"}