{"id":21385361,"url":"https://github.com/touchifyapp/docker-ssh","last_synced_at":"2025-08-25T07:34:50.364Z","repository":{"id":56210247,"uuid":"171069229","full_name":"touchifyapp/docker-ssh","owner":"touchifyapp","description":"Docker image to run a containerized ssh service.","archived":false,"fork":false,"pushed_at":"2020-11-20T10:08:31.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T16:05:39.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/touchifyapp.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}},"created_at":"2019-02-17T01:14:10.000Z","updated_at":"2024-01-18T09:31:05.000Z","dependencies_parsed_at":"2022-08-15T14:41:00.761Z","dependency_job_id":null,"html_url":"https://github.com/touchifyapp/docker-ssh","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/touchifyapp/docker-ssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Fdocker-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Fdocker-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Fdocker-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Fdocker-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/touchifyapp","download_url":"https://codeload.github.com/touchifyapp/docker-ssh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Fdocker-ssh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272024770,"owners_count":24860528,"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-08-25T02:00:12.092Z","response_time":1107,"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":[],"created_at":"2024-11-22T11:47:05.249Z","updated_at":"2025-08-25T07:34:50.116Z","avatar_url":"https://github.com/touchifyapp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supported tags and respective Dockerfile links\n\n*  [`7.9.4`, `7.9`, `7`, `latest` (Dockerfile)](https://github.com/touchifyapp/docker-ssh/blob/master/Dockerfile)\n\nThis image is updated via [pull requests to the `touchifyapp/docker-ssh` GitHub repo](https://github.com/touchifyapp/docker-ssh/pulls).\n\n# [OpenSSH](https://www.openssh.com/): Open Secure SHell.\n\n![OpenSSH logo](https://www.openssh.com/images/openssh.gif)\n\n`OpenSSH` (Secure SHell). The SSH protocol uses encryption to secure the connection between a client and a server. All user authentication, commands, output, and file transfers are encrypted to protect against attacks in the network. \n\n## How to use\n\nThe container can be used as a simple container or a swarm service.\n\n### Default configuration\n\nThe following case uses the default configuration. To connect the server, use `ssh root@localhost -p 2222` (password: `root`).\n\n```\n$ docker run -dt \\\n$   --name ssh \\\n$   -p 2222:22 \\\n$   touchifyapp/ssh\n```\n\n### Custom root password\n\nYou can also specify a custom root password.\n\n#### Environment variable\n\nYou can specify root password using `SSH_ROOT_PASSWORD` environment variable:\n\n```\n$ docker run -dt \\\n$   --name ssh \\\n$   -p 2222:22 \\\n$   -e SSH_ROOT_PASSWORD=mypassword \\\n$   touchifyapp/ssh\n```\n\n#### Docker secret\n\nYou can specify root password using Docker `secret` and `SSH_ROOT_PASSWORD_FILE` environment variable:\n\n```\n# Create secret\n$ printf \"secretpassword\" | docker secret create ssh_password -\n\n# Run service\n$ docker service create \\\n$   --name ssh \\\n$   --publish 2222:22 \\\n$   --secret ssh_password \\\n$   --env SSH_ROOT_PASSWORD_FILE=/run/secrets/ssh_password \\\n$   touchifyapp/ssh\n```\n\n### Using authorized key\n\nYou can provide your own authorized key.\n\n#### Environment variable\n\nYou can specify root password using `SSH_AUTHORIZED_KEY` environment variable:\n\n```\n$ docker run -dt \\\n$   --name ssh \\\n$   -p 2222:22 \\\n$   -e SSH_AUTHORIZED_KEY=\"$(cat ~/.ssh/id_rsa.pub)\" \\\n$   touchifyapp/ssh\n```\n\n#### Docker secret\n\nYou can specify root password using Docker `secret` and `SSH_AUTHORIZED_KEY_FILE` environment variable:\n\n```\n# Create secret\n$ docker secret create ssh_authorized_key ~/.ssh/id_rsa.pub\n\n# Run service\n$ docker service create \\\n$   --name ssh \\\n$   --publish 2222:22 \\\n$   --secret ssh_authorized_key \\\n$   --env SSH_AUTHORIZED_KEY_FILE=/run/secrets/ssh_authorized_key \\\n$   touchifyapp/ssh\n```\n\n## Configuration\n\n### Environment variables\n\n| Environment variable | Description | Example |\n| --- | --- | --- |\n| SSH_ROOT_PASSWORD | Sets custom root password. | `SSH_ROOT_PASSWORD=mycustompassword` |\n| SSH_ROOT_PASSWORD_FILE | Sets custom root password using a Docker secret. | `SSH_ROOT_PASSWORD_FILE=/run/secrets/ssh_password` |\n| SSH_AUTHORIZED_KEY | Sets the SSH public authorized key. | `SSH_AUTHORIZED_KEY=\"$(cat ~/.ssh/id_rsa.pub)\"` |\n| SSH_AUTHORIZED_KEY_FILE | Sets the SSH public authorized key using a Docker secret. | `SSH_AUTHORIZED_KEY_FILE=/run/secrets/ssh_authorizedkey` |\n| SSH_ALLOW_TCP_FORWARDING | `yes` or `no`. Enable or disable TCP forwarding. | `SSH_ALLOW_TCP_FORWARDING=yes` |\n| SSH_GATEWAY_PORTS | `yes` or `no`. Enable or disable Gateway Ports. | `SSH_GATEWAY_PORTS=yes` |\n\n### Command-line options\n\nYou can customize the `sshd` behavior by appending command-line options to your command.\n\n```\n$ docker run -dt \\\n$   --name ssh \\\n$   -p 2222:22 \\\n$   -e SSH_AUTHORIZED_KEY=\"$(cat ~/.ssh/id_rsa.pub)\" \\\n$   touchifyapp/ssh \\\n$   -o PasswordAuthentication=no \\\n$   -v\n```\n\nYou can find all command-line options on [the `sshd` manual](https://man.openbsd.org/sshd).\n\n## License\n\nView [license information](https://github.com/touchifyapp/docker-ssh/blob/master/LICENSE) for the software contained in this image.\n\n## Supported Docker versions\n\nThis image is officially supported on Docker version 1.13+.\n\nPlease see [the Docker installation documentation](https://docs.docker.com/installation/) for details on how to upgrade your Docker daemon.\n\n## User Feedback\n\n### Documentation\n\nDocumentation for this image is stored in [the `touchifyapp/docker-ssh` GitHub repo](https://github.com/touchifyapp/docker-ssh).\nBe sure to familiarize yourself with the repository's README.md file before attempting a pull request.\n\n### Issues\n\nIf you have any problems with or questions about this image, please contact us through a [GitHub issue](https://github.com/touchifyapp/docker-ssh/issues).\n\n### Contributing\n\nYou are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.\n\nBefore you start to code, we recommend discussing your plans through a [GitHub issue](https://github.com/touchifyapp/docker-ssh/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouchifyapp%2Fdocker-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouchifyapp%2Fdocker-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouchifyapp%2Fdocker-ssh/lists"}