{"id":16139155,"url":"https://github.com/jdolitsky/go-pivot-ssh","last_synced_at":"2025-04-06T17:41:07.504Z","repository":{"id":147312795,"uuid":"427046349","full_name":"jdolitsky/go-pivot-ssh","owner":"jdolitsky","description":"Simple Go-based tool to proxy local TCP connections over an SSH tunnel","archived":false,"fork":false,"pushed_at":"2021-11-11T19:50:32.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T23:43:33.651Z","etag":null,"topics":["golang","pivot","proxy","ssh","tunnel"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jdolitsky.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":"2021-11-11T15:15:53.000Z","updated_at":"2021-11-11T19:50:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"78fe85a3-34ea-4d72-a6f5-01ea89d209bf","html_url":"https://github.com/jdolitsky/go-pivot-ssh","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/jdolitsky%2Fgo-pivot-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Fgo-pivot-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Fgo-pivot-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolitsky%2Fgo-pivot-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdolitsky","download_url":"https://codeload.github.com/jdolitsky/go-pivot-ssh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526675,"owners_count":20953141,"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":["golang","pivot","proxy","ssh","tunnel"],"created_at":"2024-10-09T23:47:39.838Z","updated_at":"2025-04-06T17:41:07.473Z","avatar_url":"https://github.com/jdolitsky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-pivot-ssh\n\nSimple Go-based tool to proxy local TCP connections\nover an SSH tunnel.\n\nUses host entries found in `~/.ssh/config`\nfor authentication. If no `IdentifyFile` is\ndefined for a given host, user will be\nprompted to enter password.\n\n## How to use\n\nInstall (requires Go):\n```\ngit clone https://github.com/jdolitsky/go-pivot-ssh.git 2\u003e/dev/null \u0026\u0026 \\\n  (cd go-pivot-ssh \u0026\u0026 go build -o /usr/local/bin/pivot-ssh .) \u0026\u0026 \\\n  rm -rf go-pivot-ssh/\n```\n\nUsage:\n```\npivot-ssh \u003cremote_host\u003e \u003clocal_listener\u003e \u003cforward_to\u003e\n```\n\n## Example\n\nFor example, access service at `10.1.1.55:80`, which is only\nreachable via `10.11.1.123` (which you have SSH access to).\n\nIn your `~/.ssh/config`, add info about the host:\n```\n$ cat ~/.ssh/config\nHost 10.11.1.123\n\tUser myuser\n\tPort 2222\n```\n\nThen start a local listener at `127.0.0.1:8080` which\nwill forward traffic to `10.1.1.55:80` over SSH tunnel:\n\n```\n$ pivot-ssh 10.11.1.123 127.0.0.1:8080 10.1.1.55:80\nEnter SSH password: \n2021/11/11 09:46:43.239008 listening for new connections...\n2021/11/11 09:46:45.711348 accepted connection\n2021/11/11 09:46:45.711387 listening for new connections...\n2021/11/11 09:46:46.248858 connected to 10.11.1.123:2222 (1 of 2)\n2021/11/11 09:46:46.525407 connected to 10.1.1.55:80 (2 of 2)\n```\n\n## Credits\n\nPowered by the following Go libraries:\n\n- https://github.com/elliotchance/sshtunnel\n- https://github.com/kevinburke/ssh_config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolitsky%2Fgo-pivot-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdolitsky%2Fgo-pivot-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolitsky%2Fgo-pivot-ssh/lists"}