{"id":15406848,"url":"https://github.com/dannyben/docker-sshd","last_synced_at":"2026-04-01T20:20:54.939Z","repository":{"id":68196922,"uuid":"184748052","full_name":"DannyBen/docker-sshd","owner":"DannyBen","description":"Alpine SSH Client and Server","archived":false,"fork":false,"pushed_at":"2022-10-01T07:57:37.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-28T00:11:47.503Z","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/DannyBen.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":"2019-05-03T12:01:18.000Z","updated_at":"2024-10-21T15:52:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2a6caa1-b470-4aa2-8cb0-774ab75c6694","html_url":"https://github.com/DannyBen/docker-sshd","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"a8f799beaca1f92f1acd31e50adfc806221d6651"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DannyBen/docker-sshd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fdocker-sshd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fdocker-sshd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fdocker-sshd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fdocker-sshd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DannyBen","download_url":"https://codeload.github.com/DannyBen/docker-sshd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Fdocker-sshd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: 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-10-01T16:25:56.456Z","updated_at":"2026-04-01T20:20:54.920Z","avatar_url":"https://github.com/DannyBen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Alpine SSH Client and Server\n==================================================\n\nMinimal Alpine ssh client and server.\n\nQuick Start\n--------------------------------------------------\n\nYou can use the [docker-compose](docker-compose.yml) file, to get up and \nrunning quickly.\n\n    $ export AUTHORIZED_KEY=\"ssh-rsa ...\"\n    $ docker compose up -d server\n    $ docker compose run --rm client\n\nIf you do not have an SSH key, you can generate a passphrase-less one with:\n\n    $ ssh-keygen -t rsa -C \"you@email.com\" -f id_rsa -N ''\n\n\nUsage\n--------------------------------------------------\n\nThis usage pattern shows how to have both a server and a client as docker\ncontainers. If you need only one side of it, skip whatever is not relevant.\n\n\n### Network\n\nFirst, create a network for the two containers to share:\n\n    $ docker network create -d bridge dockernet\n\n\n### Server\n\nCreate an environment variable with your public key, then start the server.\n\n    $ export AUTHORIZED_KEY=\"ssh-rsa ...\"\n    $ docker run --rm -it -e AUTHORIZED_KEY \\\n      --network dockernet \\\n      --entrypoint /sshd-entrypoint \\\n      --name server \\\n      dannyben/sshd\n\n\n### Client\n\nIn another terminal, mount your private key and connect to the server:\n\n    $ docker run --rm -it \\\n      -v ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro \\\n      --network dockernet \\\n      dannyben/sshd \\\n      ssh server\n\n\nAdditional Information\n--------------------------------------------------\n\n- [dannyben/docker-sshd on GitHub][1]\n- [dannyben/sshd on Docker Hub][2]\n\n---\n\n[1]: https://github.com/DannyBen/docker-sshd\n[2]: https://hub.docker.com/r/dannyben/sshd/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Fdocker-sshd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannyben%2Fdocker-sshd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Fdocker-sshd/lists"}