samueleaton / autossh Goto Github PK
View Code? Open in Web Editor NEWPersistent SSH tunnels
Home Page: https://www.npmjs.com/package/autossh
Persistent SSH tunnels
Home Page: https://www.npmjs.com/package/autossh
Hi, is there a possibility to add a smarter way to kill the connection.
Using kill() closes connection but keeps port on endpoint listening if using reverse tunnelling. Sending "exit" or "~." to stdin would be a much better solution for closing.
Have a nice day, Žan
I use AutoSSH to revere tunneling two ports, something like this
autossh({
host: 'myHost',
username: 'myUsername',
localPort: 3000,
remotePort: 'rPort',
reverse: true,
privateKey: 'myKey'
})
.on('error', function(err){
console.error(err);
});
autossh({
host: 'myHost',
username: 'myUsername',
localPort: 22,
remotePort: 'rPort2',
reverse: true,
privateKey: 'myKey'
})
.on('error', function(err){
console.error(err);
});
But only rPort2 restarts AutoSSH and makes it always on, but rPort stays down, am I doing something wrong or is a bug? Can autossh keep alive two tunnels?
is there a way to make a remote Tunneling? Use -R arg and not -L
Hi
Thanks for your great project.
I have a csv or config file contain list ssh login. Example:
120.42.95.32|user|password|
118.161.33.31|user|password|
117.253.96.22|user|password|
Can i create muilti ssh tunnel with list info ssh login ?
thanks.
How make with knocking port?
Can you add AUTOSSH_KNOCK?? :)
Or How Execut Pre Start before each connection? ;)
knock -d 500 IP/HOST port1 port2 port3 port4
Thx)
Hi, I'd like to set timeout on retries. e.g when internet is off, I'd like to wait for 2-3 seconds before re-attempting the connection.
Because restarting immediately consumes a lot of CPU power, thus I'm running it on my raspberry PI, which seems overkill for that.
Regards.
Hi
I have error when run example:
file:ssh.js:
autossh({
host: '111.22.333.444',
username: 'root',
localPort: 64444,
remotePort: 5432
})
.on('error', err => {
console.error('ERROR: ', err);
})
.on('connect', connection => {
console.log('Tunnel established on port ' + connection.localPort);
console.log('pid: ' + connection.pid);
});
Show error:
/home/node/ssh.js:7
.on('error', err => {
^
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3
how to fix this error ?
Thanks
Hi!
How can i add the remoteHost, in order to be able to accept connections from something different than localhost?
Like: ssh -NR 0.0.0.0:6667:192.168.1.64:80..................
Thank you!
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.