{"id":19570480,"url":"https://github.com/natthasath/demo-docker-ssh","last_synced_at":"2026-04-12T16:14:17.410Z","repository":{"id":135616621,"uuid":"578440978","full_name":"natthasath/demo-docker-ssh","owner":"natthasath","description":"Connecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.","archived":false,"fork":false,"pushed_at":"2024-06-13T06:51:06.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-26T10:37:01.209Z","etag":null,"topics":["docker-compose","dockerfile","ssh"],"latest_commit_sha":null,"homepage":"https://goteleport.com/blog/shell-access-docker-container-with-ssh-and-docker-exec/","language":"YAML","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/natthasath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-15T04:02:06.000Z","updated_at":"2024-06-13T06:51:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"0dcb7219-1e1b-410a-aa73-d4e19990e53b","html_url":"https://github.com/natthasath/demo-docker-ssh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/natthasath/demo-docker-ssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natthasath%2Fdemo-docker-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natthasath%2Fdemo-docker-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natthasath%2Fdemo-docker-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natthasath%2Fdemo-docker-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natthasath","download_url":"https://codeload.github.com/natthasath/demo-docker-ssh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natthasath%2Fdemo-docker-ssh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262327338,"owners_count":23294254,"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","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-compose","dockerfile","ssh"],"created_at":"2024-11-11T06:15:10.600Z","updated_at":"2026-04-12T16:14:17.383Z","avatar_url":"https://github.com/natthasath.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎉 Demo Docker SSH\n\nConnecting to a running Docker container via SSH to execute commands and access a shell inside the container. This is useful for debugging, troubleshooting, and managing the container. The container must have an SSH server and be running in privileged mode.\n\n![version](https://img.shields.io/badge/version-1.0-blue)\n![rating](https://img.shields.io/badge/rating-★★★★★-yellow)\n![uptime](https://img.shields.io/badge/uptime-100%25-brightgreen)\n\n### 🔔 Generate SSH Key\n\n```shell\n./ssh-keygen.sh\n```\n\n### 🏆 Run\n\n```shell\ndocker-compose up -d\n```\n\n### 👉🏻 Try it out\n\n```shell\nssh -i id_rsa sshuser@localhost -p 2222\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatthasath%2Fdemo-docker-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatthasath%2Fdemo-docker-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatthasath%2Fdemo-docker-ssh/lists"}