Skip to content

Instantly share code, notes, and snippets.

View olatheander's full-sized avatar

Ola Theander olatheander

  • Myola Consulting AB
  • Stockholm, Sweden
View GitHub Profile
@olatheander
olatheander / go-ssh-reverse-tunnel.go
Created November 29, 2019 18:34
Golang SSH reverse tunnel non-blocking
/*
Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command:
ssh -R 8080:127.0.0.1:8080 [email protected]
which opens a tunnel between the two endpoints and permit to exchange information on this direction:
server:8080 -----> client:8080