markelog / adit Goto Github PK
View Code? Open in Web Editor NEWSSH tunnels – in any way you want it
License: Mozilla Public License 2.0
SSH tunnels – in any way you want it
License: Mozilla Public License 2.0
Currently I am using these two modules
Websockify; webSocket to TCP proxy javascript for Node.js
plink.exe; SSH client with port redirect for windows
In order to open a web socket connection with a remote VNC server (port 5900). To achieve that currently I use plink to create a ssh tunnel to a remote VNC server and redirect the remote port 5900 over ssh tunnel.
This is the plink command I execute:
plink.exe -L 3333:localhost:5900 -i key.ppk user@remotehost -pw passphrase
And I would like to integrate that plink functionality into the websockify script.
Would that be possible with adit?
Thanks in advance :)
How to implement automatic dest port selection when using reverse ssh tunnel?
Thanks
Hi,
Thanks great project.
Thanks
Although the docs state that it is possible to close the connection, I was not successful in doing so:
const adit = new Adit(`67382:localhost:12345 [email protected]`)
const sep = path.sep
adit.key = fs.readFileSync(`${os.homedir()}${sep}.ssh${sep}id_rsa`)
adit.agent = null
adit.forward().then(
() => {
this.alreadyConnected = true
console.log('Connected')
adit.close()
return Promise.resolve()
},
(error) => {
console.log('adit on error', error)
Promise.reject(error)
})
The script keeps on running.
Am I missing something here?
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.