Giter Site home page Giter Site logo

autossh's People

Contributors

samueleaton avatar vale981 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autossh's Issues

Remote autossh

is there a way to make a remote Tunneling? Use -R arg and not -L

Two Instances of AutoSSH

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?

Closing connection with exit or ~.

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

SyntaxError: Unexpected token >

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

retry timeout.

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.

RemoteHost

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!

How to create muilti ssh tunnel ?

Hi
Thanks for your great project.

I have a question:

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.

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.