{"id":25351133,"url":"https://github.com/amhoba/lightweight-docker-ssh-server","last_synced_at":"2025-07-26T10:10:23.124Z","repository":{"id":268930846,"uuid":"905893905","full_name":"amhoba/lightweight-docker-ssh-server","owner":"amhoba","description":"A simple SSH server implemented in a Docker container based on Alpine Linux. This server allows users to connect via SSH with customizable usernames and passwords, making it ideal for development and testing environments.","archived":false,"fork":false,"pushed_at":"2024-12-21T19:21:14.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T22:47:37.058Z","etag":null,"topics":["alpine","development","docker","openssh","server","ssh","testing"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/amhoba.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}},"created_at":"2024-12-19T18:28:28.000Z","updated_at":"2024-12-21T19:21:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"1bc54b18-ed99-4899-9ab1-58f4eb3b9a77","html_url":"https://github.com/amhoba/lightweight-docker-ssh-server","commit_stats":null,"previous_names":["amhoba2014/lightweight-docker-ssh-server","amhoba/lightweight-docker-ssh-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amhoba/lightweight-docker-ssh-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhoba%2Flightweight-docker-ssh-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhoba%2Flightweight-docker-ssh-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhoba%2Flightweight-docker-ssh-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhoba%2Flightweight-docker-ssh-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amhoba","download_url":"https://codeload.github.com/amhoba/lightweight-docker-ssh-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhoba%2Flightweight-docker-ssh-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267149692,"owners_count":24043452,"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-07-26T02:00:08.937Z","response_time":62,"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":["alpine","development","docker","openssh","server","ssh","testing"],"created_at":"2025-02-14T17:58:07.749Z","updated_at":"2025-07-26T10:10:23.095Z","avatar_url":"https://github.com/amhoba.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple SSH Server in Docker\n\nThis repository provides a Docker image for a simple SSH server based on Alpine Linux. The server allows users to connect via SSH with a specified username and password. This setup is ideal for development and testing purposes.\n\n## Features\n\n- Lightweight base image using Alpine Linux.\n- Supports user-defined usernames and passwords.\n- Allows SSH access with password authentication.\n- Automatically displays the container's IP address upon startup.\n- Simple to build and run with Docker.\n\n## Getting Started\n\n### Prerequisites\n\n- [Docker](https://www.docker.com/get-started) installed on your machine.\n- Basic knowledge of Docker commands.\n\n### How To Just Run\n\nJust run the following commands to start using it right away (or move on to the next step to build it yourself):\n\n```bash\ndocker pull ghcr.io/amhoba2014/lightweight-docker-ssh-server ;\ndocker run --rm -it -p 2222:22 ghcr.io/amhoba2014/lightweight-docker-ssh-server:latest ;\n```\n\n### Building the Docker Image\n\nTo build the Docker image, clone this repository and navigate to its directory:\n\n```bash\ngit clone https://github.com/amhoba2014/lightweight-docker-ssh-server\ncd lightweight-docker-ssh-server\n```\n\nThen, build the image using the following command. You can specify a custom username and password using build arguments:\n\n```bash\ndocker build --build-arg USERNAME=myuser --build-arg PASSWORD=mypassword -t ssh-server .\n```\n\nIf you want to use the default username (`user`) and password (`user`), simply run:\n\n```bash\ndocker build -t ssh-server .\n```\n\n### Running the Docker Container\n\nTo run the container, use the following command:\n\n```bash\ndocker run --rm -it -p 2222:22 ssh-server\n```\n\nThis command will start the SSH server and map port 2222 on your host to port 22 in the container.\n\n### Connecting to the SSH Server\n\nOnce the container is running, you will see output similar to:\n\n```\nSSH server is starting. Container IP address: \u003ccontainer_ip\u003e\nYou can now connect using ssh user@\u003ccontainer_ip\u003e with password: user\n```\n\nTo connect to the SSH server, use an SSH client (like OpenSSH) from your terminal:\n\n```bash\nssh user@\u003ccontainer_ip\u003e -p 2222\n```\n\nYou will be prompted to enter the password. Use the password you specified during the build process or the default password (`user`).\n\n## Security Considerations\n\nThis SSH server configuration is intended for development and testing purposes only. It is not secure for production environments due to:\n\n- Password authentication being enabled.\n- Root login being disabled (though root access may still be possible through other means).\n\nFor production use, consider implementing key-based authentication and further hardening your SSH server configuration.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.\n\n## Acknowledgements\n\n- [Alpine Linux](https://alpinelinux.org/) for providing a lightweight base image.\n- [OpenSSH](https://www.openssh.com/) for secure shell access.\n\n---\n\nFeel free to modify this README as needed, especially sections like \"License\" or \"Contributing\" based on your project's specifics. Happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famhoba%2Flightweight-docker-ssh-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famhoba%2Flightweight-docker-ssh-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famhoba%2Flightweight-docker-ssh-server/lists"}