Giter VIP home page Giter VIP logo

Comments (3)

agebrock avatar agebrock commented on July 27, 2024 1

This came up in the 4.x version already. The problem I see is that you need to open the ports on your local machine as well.

So for the setup you describe, I guess we need multiple tcp server, multiple forwards but only one ssh connection.

In fact I am having kind of the same requirement in one of my experiments where I would like to bind all ports from a kubernetes (or docker cluster) from a remote machine to my local one.

I think that goes into the same direction as your request.

I am reviewing the code one more time, and see how we could prepare the lib to do such thing.

Thanks for your input.

from tunnel-ssh.

agebrock avatar agebrock commented on July 27, 2024

I was asked that question before. I guess you want to open multiple ports on your local machine as well. So you would need multiple TCP servers.

In that case I simply advice to create multiple instances of the tunnel.

If you have something different in mind, please provide a usage example.

Thanks !

from tunnel-ssh.

Dragonox77 avatar Dragonox77 commented on July 27, 2024

Hi,
Many thanks for this answer;

I was thinking of transforming the tunnelOptions config variable into an array, and iterating it so you could create as much as tunnels as you need internaly, and call "conn.forwardOut" (line 80) for every entries.

What do you think ?

Thank you again

from tunnel-ssh.

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.