-
This program sends the file to the HTTP directly
-
Clone the repo by copying the command
git clone https://github.com/drjvtlkr/httptunnel.git
-
Now run the program on the vs code terminal
go run main.go
-
Now open a sister terminal in the same project folder where there is main.go
-
Now run the command
ssh localhost -p 2222 < main.go -
You will get an warning initially, which says
Pseudo-terminal will not be allocated because stdin is not a terminal. The authenticity of host '[localhost]:2222 ([127.0.0.1]:2222)' can't be established. RSA key fingerprint is SHA256:<YOUR_UNIQUE_RSA_KEY> This key is not known by any other names.
-
Press Yes and continue
-
What this does is sends the main.go file onto the location in the browser
http://localhost:3000/?id=<your_tunnel_id>
-
You will get this tunnel ID in your terminal where you had run
go run main.go
-
Voila, you are done!!