{"id":18482071,"url":"https://github.com/sigwinhq/docker-ssh-tunnel","last_synced_at":"2026-05-02T23:41:03.365Z","repository":{"id":116642479,"uuid":"373449356","full_name":"sigwinhq/docker-ssh-tunnel","owner":"sigwinhq","description":"Use SSH tunnelling (AKA port forwarding) within your Docker environment to allow your containers to access remote firewalled services by accessing them via known public IPs.","archived":false,"fork":false,"pushed_at":"2021-06-03T09:42:43.000Z","size":1,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T21:25:26.872Z","etag":null,"topics":["docker","docker-compose","docker-image"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sigwinhq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-03T09:19:03.000Z","updated_at":"2023-03-10T12:50:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"13fecab3-0ed5-4c16-881c-df9e3fcc4b03","html_url":"https://github.com/sigwinhq/docker-ssh-tunnel","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/sigwinhq%2Fdocker-ssh-tunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Fdocker-ssh-tunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Fdocker-ssh-tunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigwinhq%2Fdocker-ssh-tunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigwinhq","download_url":"https://codeload.github.com/sigwinhq/docker-ssh-tunnel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254015811,"owners_count":21999925,"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-compose","docker-image"],"created_at":"2024-11-06T12:26:48.305Z","updated_at":"2025-10-05T16:02:19.658Z","avatar_url":"https://github.com/sigwinhq.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH tunnel in Docker\n\nUse case: allow your Docker containers to use SSH tunnels\nto get into those hard to reach places like corporate resources,\nfirewalled APIs etc.\n\n## Usage with Docker Compose\n\n```yaml\nservices:\n    # your reglar services\n    \n    ssh-tunnel:\n        image: sigwinhq/ssh-tunnel:latest\n        environment:\n            # if the key is password-protected\n            SSH_AUTH_SOCK: \"/ssh-agent\"\n            # the host via which we tunnel\n            TUNNEL_HOST: \"username@ssh.host.you.can.reach.example.com\"\n            # what do we want to proxy to?\n            FORWARD_DSN: \"*:443:firewalled-api.example.com:443\"\n        volumes:\n            # your key is now usable by the tunnel\n            - $HOME/.ssh:/root/ssh:ro\n            # if the key is password-protected\n            - $SSH_AUTH_SOCK:/ssh-agent\n        # this part is to make the tunnel transparent to others\n        networks:\n            default:\n                aliases:\n                    - firewalled-api.example.com\n```\n\nAfter doing this, your other services should now have access\nto the firewalled API as if it's available directly,\nwithout even knowing about the proxy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigwinhq%2Fdocker-ssh-tunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigwinhq%2Fdocker-ssh-tunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigwinhq%2Fdocker-ssh-tunnel/lists"}