A
A
Andrey2018-09-22 14:39:42
go
Andrey, 2018-09-22 14:39:42

How to set up a tunnel in golang?

How to set up an ssh tunnel on golang, which will be equal to this command:

plink.exe -ssh -R 185.58.205.245:9999:127.0.0.1:8080 185.58.205.245 -P 22 -C -N -l root -pw somepassword123

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2018-09-22
@index0h

See https://golang.org/pkg/os/exec/#example_Cmd_Start

B
Black_Jack, 2018-09-24
@Black_Jack

Here is an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question