{"id":15481445,"url":"https://github.com/byjg/docker-openssh-server","last_synced_at":"2026-05-15T12:05:38.686Z","repository":{"id":71043550,"uuid":"151896951","full_name":"byjg/docker-openssh-server","owner":"byjg","description":"Docker OpenSSH Server Image / Bastion","archived":false,"fork":false,"pushed_at":"2019-11-03T01:49:23.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T14:37:14.719Z","etag":null,"topics":["bastion","docker","docker-openssh-server","openssh-server"],"latest_commit_sha":null,"homepage":"","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/byjg.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":"2018-10-07T01:46:00.000Z","updated_at":"2023-04-29T22:56:58.000Z","dependencies_parsed_at":"2023-03-11T09:46:15.349Z","dependency_job_id":null,"html_url":"https://github.com/byjg/docker-openssh-server","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"c9ed66e9607119f0e188ea810daca401aa74c3de"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/byjg/docker-openssh-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-openssh-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-openssh-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-openssh-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-openssh-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byjg","download_url":"https://codeload.github.com/byjg/docker-openssh-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-openssh-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268439747,"owners_count":24250672,"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-08-02T02:00:12.353Z","response_time":74,"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":["bastion","docker","docker-openssh-server","openssh-server"],"created_at":"2024-10-02T05:04:29.287Z","updated_at":"2026-05-15T12:05:33.664Z","avatar_url":"https://github.com/byjg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker OpenSSH Server Image\n\nThis image runs a Simple OpenSSH Server. You can use it as a Bastion server. \n\n# Command Line\n\n```bash\ndocker run \\\n   --rm \\\n   -p 2222:22 \\\n   -e SSH_PUBLIC_KEY=\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB...oOZRfcqYs4JPQgxpZ public-key\" \\\n   --name openssh-server \\\n   -d byjg/openssh-server\n```\n\n# Docker Compose\n\n```yaml\nversion: '3.4'\n\nservices:\n  ssh:\n    image: byjg/openssh-server\n    environment:\n      - SSH_PUBLIC_KEY=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB...oOZRfcqYs4JPQgxpZ public-key\n    ports:\n      - 2222:22\n```\n\n# Passing more than one public key\n\nJust add `SSH_PUBLIC_KEY` variables followed by 1, 2, 3. \n\n```bash\ndocker run \\\n   --rm \\\n   -p 2222:22 \\\n   -e SSH_PUBLIC_KEY=\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAB...oOZRfcqYs4JPQgxpZ public-key\" \\\n   -e SSH_PUBLIC_KEY1=\"ssh-rsa CCCCCC4AbCed12ECCCCCCCCCCCCC...hja9ajhskjhasjkla public-key\" \\\n   -e SSH_PUBLIC_KEY2=\"ssh-rsa DDDDE5ua8AjajFDDDDDDDDDDDDDD...aha2ujaja81jggaaa public-key\" \\\n   --name openssh-server \\\n   -d byjg/openssh-server\n```\n\n# Accessing the container\n\nBecause security purposes the user `root` is not allowed to login. Instead you have\nto login with the user `user`\n\n```bash\nssh -p 2222 user@\u003cCONTAINER IP\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjg%2Fdocker-openssh-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyjg%2Fdocker-openssh-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjg%2Fdocker-openssh-server/lists"}