{"id":18994803,"url":"https://github.com/flaviodelgrosso/docker-ssh-service","last_synced_at":"2026-04-28T01:32:27.730Z","repository":{"id":181631573,"uuid":"667068627","full_name":"flaviodelgrosso/docker-ssh-service","owner":"flaviodelgrosso","description":"SSH service in Docker container","archived":false,"fork":false,"pushed_at":"2023-07-16T14:51:05.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T09:51:33.482Z","etag":null,"topics":["docker","remote-development","service","ssh"],"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/flaviodelgrosso.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}},"created_at":"2023-07-16T14:37:53.000Z","updated_at":"2024-04-15T15:44:41.000Z","dependencies_parsed_at":"2023-07-16T15:55:08.204Z","dependency_job_id":null,"html_url":"https://github.com/flaviodelgrosso/docker-ssh-service","commit_stats":null,"previous_names":["flaviodelgrosso/docker-ssh-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flaviodelgrosso/docker-ssh-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fdocker-ssh-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fdocker-ssh-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fdocker-ssh-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fdocker-ssh-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flaviodelgrosso","download_url":"https://codeload.github.com/flaviodelgrosso/docker-ssh-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviodelgrosso%2Fdocker-ssh-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","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":["docker","remote-development","service","ssh"],"created_at":"2024-11-08T17:27:08.043Z","updated_at":"2026-04-28T01:32:27.716Z","avatar_url":"https://github.com/flaviodelgrosso.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker SSH Server\n\nThis project contains a Dockerfile and a build script to create and run an SSH server container based on Ubuntu. It allows you to easily set up an SSH server inside a Docker container.\n\n## Getting Started\n\nTo get started, follow the steps below:\n\n1. Clone this repository to your local machine.\n2. Rename the `.env.example` file to `.env` and update the values of `SSH_USER` and `SSH_PWD` with your desired SSH username and password.\n3. Open a terminal and navigate to the project directory.\n\n### Building the Docker Image\n\nTo build the Docker image, run the `build.sh` script with the container name as first argument:\n\n```bash\n./build.sh \u003cCONTAINER_NAME\u003e\n```\n\nThe script will read the values from the `.env` file and build the Docker image with the provided SSH username and password.\n\n### Running the Container\n\nAfter the Docker image is built, you can run the container using the following command:\n\n```bash\ndocker run -it -d -p 22:22 --name \u003cCONTAINER_NAME\u003e \u003cIMAGE_NAME\u003e\n```\n\nReplace `\u003cCONTAINER_NAME\u003e` with the desired name for your container and `\u003cIMAGE_NAME\u003e` with the name of the Docker image.\n\n### Connecting to the SSH Server\n\nTo connect to the SSH server running inside the container, you can use an SSH client such as OpenSSH. Use the following command:\n\n```bash\nssh -p 22 \u003cSSH_USER\u003e@\u003cCONTAINER_IP\u003e\n```\n\nReplace `\u003cSSH_USER\u003e` with the SSH username you set in the `.env` file, and `\u003cCONTAINER_IP\u003e` with the IP address of the running container. You can obtain the IP address by running `docker inspect \u003cCONTAINER_NAME\u003e`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaviodelgrosso%2Fdocker-ssh-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaviodelgrosso%2Fdocker-ssh-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaviodelgrosso%2Fdocker-ssh-service/lists"}