Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
simple node wrapper for interactive ssh sessions
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
package.json
readme.md
ssh.js

readme.md

sshey

a node wrapper for interactive ssh sessions.

EXAMPLE!

var ssh = require('sshey');

ssh('someone@localhost',function(){
  console.log('ssh all done!');
  process.exit();
})

API

ssh(userhost,options,cb)

  • userhost REQUIRED
    • the string user@hostname to pass to ssh
  • options [optional]
    • reset (default false)
      • executes reset in your terminal after the ssh session has been closed.
  • cb REQUIRED
    • the callback when all is done

ssh.resetTTY()

  • [no arguments]

INSTALL

npm install sshey

NOTES

  • right now this uses customFds but the new stdio stuff in >=0.7.x will make this easier and better.
  • the process hangs open because something im doing to process stdio. ill sort it out.
Something went wrong with that request. Please try again.