{"id":16615582,"url":"https://github.com/pschmitt/docker-sshd","last_synced_at":"2026-05-01T20:31:42.340Z","repository":{"id":40455984,"uuid":"304077301","full_name":"pschmitt/docker-sshd","owner":"pschmitt","description":"Docker container for openssh-server + STFP. Root allowed.","archived":false,"fork":false,"pushed_at":"2026-04-14T04:53:56.000Z","size":133,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T06:31:53.942Z","etag":null,"topics":["docker","kubernetes","ssh","sshd","sshfs"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/pschmitt/sshd","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pschmitt.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["pschmitt"],"custom":["https://www.paypal.com/paypalme/pppschmitt"]}},"created_at":"2020-10-14T16:44:21.000Z","updated_at":"2026-04-14T04:53:06.000Z","dependencies_parsed_at":"2024-05-28T19:22:51.586Z","dependency_job_id":"fddcbabd-8fe3-4f86-a340-2d1c2ac059c0","html_url":"https://github.com/pschmitt/docker-sshd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pschmitt/docker-sshd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschmitt","download_url":"https://codeload.github.com/pschmitt/docker-sshd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fdocker-sshd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["docker","kubernetes","ssh","sshd","sshfs"],"created_at":"2024-10-12T02:09:55.616Z","updated_at":"2026-05-01T20:31:42.315Z","avatar_url":"https://github.com/pschmitt.png","language":"Shell","funding_links":["https://github.com/sponsors/pschmitt","https://www.paypal.com/paypalme/pppschmitt"],"categories":[],"sub_categories":[],"readme":"# Docker service for SSHD\n\n[![Build](https://github.com/pschmitt/docker-sshd/workflows/Build/badge.svg)](https://github.com/pschmitt/docker-sshd/actions?query=workflow%3ABuild)\n[![Docker](https://img.shields.io/docker/pulls/pschmitt/sshd)](https://hub.docker.com/u/pschmitt/sshd)\n\n## Thanks\n\nThis is loosely based on, or rather inspired by [linuxserver/ssh-server](https://github.com/linuxserver/docker-openssh-server).\n\n## What's the point?\n\nThe main difference is that running as root is allowed, for SSHFS among others.\n\nAlso you can set the port the SSH daemon listens on **inside the container**, \nwhich may come in handy if you use this container as a way to debug a pod \nrunning on the host network namespace (if you blindly listen on `22/tcp` you \nmay end up competing with the host's SSH service - which you probably don't \nwant to, ever.).\n\n## Usage\n\n```shell\ndocker run -ti --rm \\\n  -v \"$PWD/config:/config\" \\\n  -p \"22222:22222/tcp\" \\\n  -e SSHD_PORT=\"22222\" \\\n  -e AUTHORIZED_KEYS=\"ssh-ed25519 XXX\" \\\n  -e GITHUB_USERNAME=\"pschmitt\" \\\n  -e USERNAME=\"user01\" \\\n  -e PASSWORD=\"somethingImpossibleToRemember\" \\\n  -e PERMIT_ROOT_LOGIN=\"no\" \\\n  -e PUID=\"1000\" \\\n  -e PGID=\"1000\" \\\n  pschmitt/sshd\n```\n\nThen, to connect using the example above - from the same machine:\n\n```shell\nssh -p 22222 user01@localhost\n```\n\n## Advanced usage\n\nIf you need to set the DNS ndots value (which you may since this container is\nbased on Alpine) you can so using the `DNS_NDOTS` env var.\n\nExample:\n\n```shell\ndocker run -ti --rm \\\n  -p \"22222:22222/tcp\" \\\n  -e SSHD_PORT=\"22222\" \\\n  -e USERNAME=\"user01\" \\\n  -e PASSWORD=\"somethingImpossibleToRemember\" \\\n  -e DNS_NDOTS=\"1\" \\\n  pschmitt/sshd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fdocker-sshd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschmitt%2Fdocker-sshd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fdocker-sshd/lists"}