{"id":39496451,"url":"https://github.com/haravich/custom-ssh-server","last_synced_at":"2026-01-18T05:42:48.755Z","repository":{"id":187879553,"uuid":"677742833","full_name":"haravich/custom-ssh-server","owner":"haravich","description":"This repository contains a Docker setup for creating a custom SSH server based on Alpine Linux. The setup includes the ability to use static SSH host keys, configure SSH key and password authentication, and set up user-specific SSH key pairs.","archived":false,"fork":false,"pushed_at":"2025-11-09T11:21:22.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-09T13:15:45.661Z","etag":null,"topics":["alpine","container","docker","dockerfile","linux","ssh","ssh-server","ssh-server-library","ssh-service","testing"],"latest_commit_sha":null,"homepage":"https://haravich.github.io/custom-ssh-server/","language":"Shell","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/haravich.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-12T13:44:03.000Z","updated_at":"2025-11-09T11:21:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"42649b93-3a70-4c20-863d-3df26c887d4f","html_url":"https://github.com/haravich/custom-ssh-server","commit_stats":null,"previous_names":["haravich/custom-ssh-server"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/haravich/custom-ssh-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravich%2Fcustom-ssh-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravich%2Fcustom-ssh-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravich%2Fcustom-ssh-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravich%2Fcustom-ssh-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haravich","download_url":"https://codeload.github.com/haravich/custom-ssh-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravich%2Fcustom-ssh-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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","container","docker","dockerfile","linux","ssh","ssh-server","ssh-server-library","ssh-service","testing"],"created_at":"2026-01-18T05:42:48.134Z","updated_at":"2026-01-18T05:42:48.749Z","avatar_url":"https://github.com/haravich.png","language":"Shell","readme":"# SSH Server in Docker based on Alpine Linux\n\nThis repository contains a Docker setup for creating a custom SSH server based on Alpine Linux. The setup includes the ability to use static SSH host keys, configure SSH key and password authentication, and set up user-specific SSH key pairs.\n\n[![Build](https://github.com/haravich/custom-ssh-server/actions/workflows/docker-image.yml/badge.svg)](https://github.com/haravich/custom-ssh-server/actions/workflows/docker-image.yml) ![Docker pulls](https://img.shields.io/docker/pulls/haravich/custom-ssh-server)\n\n## Table of Contents\n\n- [SSH Server in Docker based on Alpine Linux](#ssh-server-in-docker-based-on-alpine-linux)\n  - [Table of Contents](#table-of-contents)\n  - [Introduction](#introduction)\n  - [Prerequisites](#prerequisites)\n  - [Getting Started](#getting-started)\n  - [Usage](#usage)\n  - [Customization](#customization)\n  - [License](#license)\n\n## Introduction\n\nThis project provides a Dockerized environment for creating a custom SSH server with the following features:\n\n- SSH key and password authentication\n- User-specific SSH key pair generation\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- Docker: Follow the official [Docker installation guide](https://docs.docker.com/get-docker/) to install Docker on your system.\n\n## Getting Started\n\n1. **Clone the Repository**:\n\n   Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/haravich/custom-ssh-server.git\n   cd custom-ssh-server\n   ```\n\n2. **Customize Configuration**:\n\n    Modify the setup-ssh-user.sh script to customize user creation and SSH key settings.\n    Place your public key in the ssh-keys directory (needed).\n    Customize the sshd_config file to adjust SSH server settings.\n\n3. **Build and Run**:\n\n    Build the Docker image and run the container:\n\n    ```bash\n    docker build -t custom-ssh-server .\n    docker run -d -p 2222:22 -e SSH_USER=\u003cdesired_username\u003e -e SSH_PASSWORD=\u003cdesired_password\u003e custom-ssh-server\n\n    (or)\n\n    docker run -d -p 2222:22 -e SSH_USER=\u003cdesired_username\u003e -e SSH_PUBLIC_KEY=\"\u003cvalue_of_public_key\u003e || $(cat /ssh-keys/*.pub)\" custom-ssh-server\n\n    (or)\n\n    docker run -d -p 2222:22 -e SSH_USER=\u003cdesired_username\u003e -e SSH_PASSWORD=\u003cdesired_password\u003e -e SSH_PUBLIC_KEY=\"\u003cvalue_of_public_key\u003e | $(cat /ssh-keys/*.pub)\" custom-ssh-server\n    ```\n    Replace \u003cdesired_username\u003e, \u003cdesired_password\u003e and \u003cvalue_of_public_key\u003e with appropriate values.\n\n## Usage\n\nTo connect to the SSH server:\n\n```bash\nssh -i /path/to/private_key_file -p 2222 \u003cdesired_username\u003e@localhost\n```\nReplace /path/to/private_key_file and \u003cdesired_username\u003e with appropriate values.\n\n## Customization\n* Adjust the SSH server settings in the sshd_config file.\n* Customize the setup-ssh-user.sh script to modify user creation.\n\n## License\nThis project is licensed under the [MIT License](LICENSE.md). See the [LICENSE.md](LICENSE.md) file for details.\n```\nCopy and paste this Markdown content into a file named README.md in the root of your repository. Feel free to adjust the formatting and content as needed for your project.\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharavich%2Fcustom-ssh-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharavich%2Fcustom-ssh-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharavich%2Fcustom-ssh-server/lists"}