Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmis1000/ssh-gateway
a proxy to create reverse tunnel, port forward, authication and domain in one command
https://github.com/mmis1000/ssh-gateway
Last synced: about 2 months ago
JSON representation
a proxy to create reverse tunnel, port forward, authication and domain in one command
- Host: GitHub
- URL: https://github.com/mmis1000/ssh-gateway
- Owner: mmis1000
- Created: 2017-12-30T13:06:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T05:24:13.000Z (about 1 year ago)
- Last Synced: 2024-04-14T22:53:55.789Z (9 months ago)
- Language: TypeScript
- Size: 287 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSH Gateway
A proxy to create reverse tunnel, port forward, authentication and domain in one command
~~basically a ngrok clone~~
Besides port forward, this also supports serving a static directory through a HTTP domain (powered by sftp),
essentially a static HTTP server without a HTTP server.All without a dedicated client on your computer (only a script that uses `openssh-server` and `ssh`).
## Supports
1. mac: yes
2. Linux: yes
3. Windows: use WSL instead (I don't know how to write a proper PowerShell or cmd file)## Setup
1. Forward a whole domain or subdomain and its subdomain to your app
2. Properly config the config.json
3. Generate the `ssh_host_rsa_key` and `ssh_host_rsa_key.pub` properly
4. Generate the `ssh_host_ecdsa_key` and `ssh_host_ecdsa_key.pub` properly
5. Generate the `ssh_host_ed25519_key` and `ssh_host_ed25519_key.pub` properly```sh
ssh-keygen -q -N "" -t rsa -b 4096 -f ./ssh_host_rsa_key
ssh-keygen -q -N "" -t ecdsa -f ./ssh_host_ecdsa_key
ssh-keygen -q -N "" -t ed25519 -f ./ssh_host_ed25519_key
```6. Start the server
## Usage
```sh
curl -X POST https:///setup > run.sh
chmod 755 run.sh
./run.sh
```And then... *Magic*
It created everything required to enable port forwarding and authentication for you