Skip to content

soldair/node-sshey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

simple node wrapper for interactive ssh sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published