rgzr / sshtun Goto Github PK
View Code? Open in Web Editor NEWGo package to create SSH tunnels
License: MIT License
Go package to create SSH tunnels
License: MIT License
Is it possible to create a reverse tunnel with this library and if so, could you provide an example?
Thanks a lot for building this library. I'm using it to build a network test at work. Idea is simple:
we need to test lots of ports on target machines from a list of source machines. (20 ports from almost 50 machines).
SSH tunnel(forward) seems like a good idea, because I can do it from the comfort of my local machine
rather than having to write a bash script to source machine.
Here is the issue description:
But it still keeps an ESTABLISHED connection until tunnel is explicitly stopped.
I was expecting this connection to be closed immediately as soon as application exits.
Can I forward a port behind 2 SSH tunnels?
Your library looks great! Might I suggest adding support for Go Modules? Refer here: https://github.com/golang/go/wiki/Modules#how-to-define-a-module
Can we add dynamic port forwarding?
Problem
If a user does not have proper authorization to an SSH host, the sshtun.StateStarted is still being reported as if the connection was successful.
There is no error reported by sshtun and trying to access the forwarded port results in a debug log message similar to "Accepted connection from 127.0.0.1:6753" but the forwarded port never responds.
Expected Result
sshtun should either return an error upon calling sshtun.Start if the authentication is unsuccessful or at the very least not report sshtun.StateStarted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.