{"id":18426935,"url":"https://github.com/rimelek/docker-ssh-tunnel-lp","last_synced_at":"2026-05-09T10:24:49.294Z","repository":{"id":87423491,"uuid":"82424995","full_name":"rimelek/docker-ssh-tunnel-lp","owner":"rimelek","description":"forward port from a container to a local port of a machine in a private network","archived":false,"fork":false,"pushed_at":"2017-02-19T00:51:20.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T08:27:24.533Z","etag":null,"topics":["docker","docker-image","ssh-tunnel"],"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/rimelek.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":"2017-02-19T00:29:56.000Z","updated_at":"2017-02-19T18:14:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"441f6e46-1baf-40be-a791-6c9d955fae34","html_url":"https://github.com/rimelek/docker-ssh-tunnel-lp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-ssh-tunnel-lp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-ssh-tunnel-lp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-ssh-tunnel-lp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-ssh-tunnel-lp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimelek","download_url":"https://codeload.github.com/rimelek/docker-ssh-tunnel-lp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248769183,"owners_count":21158776,"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","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-image","ssh-tunnel"],"created_at":"2024-11-06T05:09:11.043Z","updated_at":"2026-05-09T10:24:49.260Z","avatar_url":"https://github.com/rimelek.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nThis is an SSH tunnel to forward port from a container to a local port of a machine in a private network.\nIt works only with SSH Keys, so you need to mount your keys into the tunnel container.\n\n**Docker Compose Example**\n\n    version: '2'\n    \n    services:\n      webapp:\n        restart: always\n        image: my-webapp-image\n        ports:\n          - 80:80\n      tunnel:\n        image: rimelek/ssh-tunnel-lp\n        network_mode: service:webapp\n        volumes:\n          - \"${HOME}/.ssh:/root/.ssh\"\n        depends_on:\n          - webapp\n        environment:\n          TUNNEL_HOST: \"mytunneluser@my.tunnel.host:12345\"\n          TUNNEL_REMOTES: |\n            mysql.intranet.lan:3306\n            nonrootuser@apiserver.intranet.lan:443\n            nonrootuser@dockerhost.intranet.lan:2375:2222\n            \nEach line of an ssh tunnel has the following format:\n\n    [nonrootuser@]hostname:serviceport[:sshport]\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fdocker-ssh-tunnel-lp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimelek%2Fdocker-ssh-tunnel-lp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fdocker-ssh-tunnel-lp/lists"}