Giter Club home page Giter Club logo

sshtun's People

Contributors

bcaldwell avatar erjanmx avatar ramin0 avatar rgzr avatar uykusuz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sshtun's Issues

Reverse tunnel

Is it possible to create a reverse tunnel with this library and if so, could you provide an example?

connection not closed for local application exits

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:

  1. SSH tunnel is created. (port 10022)
  2. Did telnet to local port
  3. Connection closed on telnet

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.

image

SSH Authentication failure does not result in an error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.