{"id":28715690,"url":"https://github.com/dmotte/docker-portfwd-server","last_synced_at":"2026-04-12T12:43:58.679Z","repository":{"id":298901752,"uuid":"1001434932","full_name":"dmotte/docker-portfwd-server","owner":"dmotte","description":"🐳 Docker image with an OpenSSH server that can be used for local port forwarding only","archived":false,"fork":false,"pushed_at":"2026-03-02T09:49:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-02T13:29:04.941Z","etag":null,"topics":["docker","docker-compose","docker-image","dockerfile","forward","forwarding","local","open","openssh","port","port-forwarding","private-key","proxy","pubkey","server","ssh","ssh-server","sshd","tcp","tunnel"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/dmotte/portfwd-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/dmotte.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-13T11:25:40.000Z","updated_at":"2026-03-02T09:35:06.000Z","dependencies_parsed_at":"2025-06-13T14:39:25.243Z","dependency_job_id":"d39cc232-6f24-48b6-accd-3f7b013c3515","html_url":"https://github.com/dmotte/docker-portfwd-server","commit_stats":null,"previous_names":["dmotte/docker-portfwd-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmotte/docker-portfwd-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fdocker-portfwd-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fdocker-portfwd-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fdocker-portfwd-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fdocker-portfwd-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmotte","download_url":"https://codeload.github.com/dmotte/docker-portfwd-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fdocker-portfwd-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31715492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"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","docker-compose","docker-image","dockerfile","forward","forwarding","local","open","openssh","port","port-forwarding","private-key","proxy","pubkey","server","ssh","ssh-server","sshd","tcp","tunnel"],"created_at":"2025-06-15T02:10:49.907Z","updated_at":"2026-04-12T12:43:58.674Z","avatar_url":"https://github.com/dmotte.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-portfwd-server\n\n[![GitHub main workflow](https://img.shields.io/github/actions/workflow/status/dmotte/docker-portfwd-server/main.yml?branch=main\u0026logo=github\u0026label=main\u0026style=flat-square)](https://github.com/dmotte/docker-portfwd-server/actions)\n[![Docker Pulls](https://img.shields.io/docker/pulls/dmotte/portfwd-server?logo=docker\u0026style=flat-square)](https://hub.docker.com/r/dmotte/portfwd-server)\n\nThis is a :whale: **Docker image** containing an **OpenSSH server** that can be used for **local port forwarding** only.\n\nIf you want a **rootless** version of this image, check out [dmotte/docker-portfwd-server-rootless](https://github.com/dmotte/docker-portfwd-server-rootless).\n\n\u003e :package: This image is also on **Docker Hub** as [`dmotte/portfwd-server`](https://hub.docker.com/r/dmotte/portfwd-server) and runs on **several architectures** (e.g. amd64, arm64, ...). To see the full list of supported platforms, please refer to the [`.github/workflows/main.yml`](.github/workflows/main.yml) file. If you need an architecture that is currently unsupported, feel free to open an issue.\n\n## Usage\n\nThe first things you need are **host keys** for the OpenSSH server and an **SSH key pair** for the client to be able to connect. See the usage example of [dmotte/docker-portmap-server](https://github.com/dmotte/docker-portmap-server) for how to get them.\n\nIn general, the use of this image is very similar to [dmotte/docker-portmap-server-rootless](https://github.com/dmotte/docker-portmap-server-rootless).\n\nExample:\n\n```bash\ndocker run -it --rm \\\n    -v \"$PWD/hostkeys:/ssh-host-keys\" \\\n    -v \"$PWD/myclientkey.pub:/ssh-client-keys/myuser/myclientkey.pub:ro\" \\\n    -p2222:22 \\\n    dmotte/portfwd-server myuser:10.0.2.15:8080\n```\n\nSee [dmotte/docker-portmap-server](https://github.com/dmotte/docker-portmap-server) for further details on usage; it's very similar to this one.\n\nFor a more complex example, refer to the [`docker-compose.yml`](docker-compose.yml) file.\n\n### Environment variables\n\nList of supported **environment variables**:\n\n| Variable             | Required         | Description                                                      |\n| -------------------- | ---------------- | ---------------------------------------------------------------- |\n| `KEEPALIVE_INTERVAL` | No (default: 30) | Value for the `ClientAliveInterval` option of the OpenSSH server |\n\n## Development\n\nIf you want to contribute to this project, you can use the following one-liner to **rebuild the image** and bring up the **Docker-Compose stack** every time you make a change to the code:\n\n```bash\ndocker-compose down \u0026\u0026 docker-compose up --build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmotte%2Fdocker-portfwd-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmotte%2Fdocker-portfwd-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmotte%2Fdocker-portfwd-server/lists"}