{"id":21509443,"url":"https://github.com/mmis1000/ssh-gateway","last_synced_at":"2025-04-09T17:07:25.502Z","repository":{"id":137629829,"uuid":"115797436","full_name":"mmis1000/ssh-gateway","owner":"mmis1000","description":"a proxy to create reverse tunnel, port forward, authication and domain in one command","archived":false,"fork":false,"pushed_at":"2024-01-12T05:24:13.000Z","size":294,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T17:07:15.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mmis1000.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":"2017-12-30T13:06:04.000Z","updated_at":"2024-01-30T19:52:58.000Z","dependencies_parsed_at":"2024-01-12T09:08:53.649Z","dependency_job_id":null,"html_url":"https://github.com/mmis1000/ssh-gateway","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/mmis1000%2Fssh-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmis1000%2Fssh-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmis1000%2Fssh-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmis1000%2Fssh-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmis1000","download_url":"https://codeload.github.com/mmis1000/ssh-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074977,"owners_count":21043490,"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":[],"created_at":"2024-11-23T21:27:07.591Z","updated_at":"2025-04-09T17:07:25.482Z","avatar_url":"https://github.com/mmis1000.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH Gateway\n\nA proxy to create reverse tunnel, port forward, authentication and domain in one command\n\n~~basically a ngrok clone~~\n\nBesides port forward, this also supports serving a static directory through a HTTP domain (powered by sftp),\nessentially a static HTTP server without a HTTP server.\n\nAll without a dedicated client on your computer (only a script that uses `openssh-server` and `ssh`).\n\n## Supports\n\n1. mac: yes\n2. Linux: yes\n3. Windows: use WSL instead (I don't know how to write a proper PowerShell or cmd file)\n\n## Setup\n\n1. Forward a whole domain or subdomain and its subdomain to your app\n2. Properly config the config.json\n3. Generate the `ssh_host_rsa_key` and `ssh_host_rsa_key.pub` properly\n4. Generate the `ssh_host_ecdsa_key` and `ssh_host_ecdsa_key.pub` properly\n5. Generate the `ssh_host_ed25519_key` and `ssh_host_ed25519_key.pub` properly\n\n    ```sh\n    ssh-keygen -q -N \"\" -t rsa -b 4096 -f ./ssh_host_rsa_key\n    ssh-keygen -q -N \"\" -t ecdsa -f ./ssh_host_ecdsa_key\n    ssh-keygen -q -N \"\" -t ed25519 -f ./ssh_host_ed25519_key\n    ```\n\n6. Start the server\n\n## Usage\n\n```sh\ncurl -X POST https://\u003cyour domain\u003e/setup \u003e run.sh\nchmod 755 run.sh\n./run.sh\n```\n\nAnd then... *Magic*  \nIt created everything required to enable port forwarding and authentication for you\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmis1000%2Fssh-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmis1000%2Fssh-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmis1000%2Fssh-gateway/lists"}