Coder Social home page Coder Social logo

Reverse SSH Tunneling about ssh2 HOT 4 CLOSED

mscdex avatar mscdex commented on May 30, 2024
Reverse SSH Tunneling

from ssh2.

Comments (4)

mscdex avatar mscdex commented on May 30, 2024

I'm not familiar with that, but this module allows you to set up a tunnel in both directions. There is an example of each in the readme.

from ssh2.

randunel avatar randunel commented on May 30, 2024

I have used this module (thanks, by the way :) ) so I am a bit familiar with it. After browsing through the code, I believe that reverse ssh cannot be handled at the moment by node-ssh2.
Reverse SSH allows NAT traversal when the node client (A) connect via SSH to the server (S) and opens a port (P) for reverse-ssh. Another client (C) connects to the server (S). From there, C at S initiates a connection to the port opened by A at S (P). Thus, client C has an open SSH connection to A via S.

I believe I haven't explained well enough, but here is a much better explanation http://www.howtoforge.com/reverse-ssh-tunneling

I currently have some embedded devices on linux with 3g, running node and using node-ssh2. I was wondering if I could initiate a reverse-ssh connection from them to my server, to open a SSH session to them, since they are sitting behind NAT.

from ssh2.

mscdex avatar mscdex commented on May 30, 2024

It seems like what you want is forwardIn().

from ssh2.

randunel avatar randunel commented on May 30, 2024

Thanks for the suggestion, I will take a look at it!

from ssh2.

Related Issues (20)

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.