{"id":28500129,"url":"https://github.com/htanh2003/ssh-docker-vscode","last_synced_at":"2026-01-31T10:02:20.030Z","repository":{"id":297181725,"uuid":"995905164","full_name":"HTAnh2003/ssh-docker-vscode","owner":"HTAnh2003","description":"Docker container setup that runs an SSH server allowing remote access for development. Designed to enable seamless VS Code Remote - SSH connection into the container for efficient remote coding and debugging.","archived":false,"fork":false,"pushed_at":"2025-06-04T07:22:58.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T04:37:16.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/HTAnh2003.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,"zenodo":null}},"created_at":"2025-06-04T07:14:18.000Z","updated_at":"2025-06-04T07:22:59.000Z","dependencies_parsed_at":"2025-06-04T14:03:53.883Z","dependency_job_id":"aad8c34b-4ca6-49bd-aa17-dcd12ca08c67","html_url":"https://github.com/HTAnh2003/ssh-docker-vscode","commit_stats":null,"previous_names":["htanh2003/ssh-docker-vscode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HTAnh2003/ssh-docker-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTAnh2003%2Fssh-docker-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTAnh2003%2Fssh-docker-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTAnh2003%2Fssh-docker-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTAnh2003%2Fssh-docker-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HTAnh2003","download_url":"https://codeload.github.com/HTAnh2003/ssh-docker-vscode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTAnh2003%2Fssh-docker-vscode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28937811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T08:53:31.997Z","status":"ssl_error","status_checked_at":"2026-01-31T08:51:38.521Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2025-06-08T15:05:57.658Z","updated_at":"2026-01-31T10:02:20.026Z","avatar_url":"https://github.com/HTAnh2003.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh-docker-vscode\n\nDocker container setup with an SSH server, allowing remote access for development.  \nThis setup enables connecting to the container via VS Code Remote - SSH extension for a smooth remote coding and debugging experience.\n\n## Features\n\n- Runs an SSH server inside a Docker container.\n- Allows remote SSH connections from VS Code.\n- Pre-configured environment for development inside the container.\n- Persistent volumes can be added for data persistence (optional).\n\n## Prerequisites\n\n- Docker and Docker Compose installed on your machine.\n- VS Code installed with the **Remote - SSH** extension.\n- Basic knowledge of SSH and Docker.\n\n## Usage\n\n### 1. Build and start the container\n\n```bash\ndocker compose up -d --build\n````\n\nThis command will build the Docker image (if needed) and start the container with the SSH server running.\n\n### 2. Check running containers\n\n```bash\ndocker ps\n```\n\nYou should see your container running and exposing the SSH port (e.g., 2222).\n\n### 3. Connect via SSH (optional)\n\nYou can test the SSH connection using either `localhost` or the specific IP address of the host machine:\n\n```bash\nssh -p 2222 root@localhost\n```\n\nor\n\n```bash\nssh -p 2222 root@\u003cHOST_IP_ADDRESS\u003e\n```\n\nReplace `\u003cHOST_IP_ADDRESS\u003e` with the actual IP address of your host machine.\n\nUse the password or SSH key configured in the Dockerfile or Docker Compose file.\n\n### 4. Connect from VS Code\n\n* Open VS Code.\n* Go to the **Remote Explorer** or use **Remote-SSH: Connect to Host...**.\n* Use the SSH configuration pointing to `localhost` with the proper port (e.g., 2222).\n* Once connected, you can develop directly inside the container environment.\n\n## Customization\n\n* Modify `docker-compose.yml` and `Dockerfile` to install additional tools or configure the environment as needed.\n* Add persistent volumes to keep your data between container restarts.\n\n## Troubleshooting\n\n* If you get host key verification errors, remove the old key from `~/.ssh/known_hosts`.\n* Ensure the SSH server inside the container is running and accessible.\n* Check port mapping in the compose file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtanh2003%2Fssh-docker-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtanh2003%2Fssh-docker-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtanh2003%2Fssh-docker-vscode/lists"}