Comments (4)
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.
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.
It seems like what you want is forwardIn().
from ssh2.
Thanks for the suggestion, I will take a look at it!
from ssh2.
Related Issues (20)
- Can't connect "ignoring handled error" HOT 9
- any method to execute command after ssh connected. HOT 10
- Get remote port forwarding -R local port HOT 2
- Question: HTTPSAgent reuse HOT 3
- Execute ssh command inside a "for of" HOT 7
- Test code should be excluded from the published package HOT 1
- Question: Missing documentation in the code
- forwardIn binding to 127.0.0.1 instead HOT 2
- App stops on error timeout even if handled HOT 3
- Not building in Cloudflare Workers HOT 1
- Issue Connecting to MongoDB via SSH Tunnel in Node.js HOT 1
- Issue/Suggestion :- Adding of maxEventListner on all the event HOT 4
- allow server to connect to forwarded agent from client HOT 1
- ecdsa-sha2-nistp256 private key support
- "Key auth required before password auth" error when connecting HOT 2
- READDIR hangs indefinitely HOT 12
- Specify `node-gyp` as a dependency. HOT 3
- SSH Client fails handshake when using publickey method HOT 7
- pm2 restart 0 No data is returned HOT 4
- Cannot find the bashrc source configuration when using ssh2 connect to the server HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssh2.