Skip to content

bredikhin/sssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streaming SSH

Build Status NPM version

Installation

npm install --save sssh

NPM

Usage

  var Connection = require('ssh2');
  var ssh = new Connection();
  var settings = { <your connection settings> };
  var Sssh = require('sssh').Command;
  var sssh = new Sssh(ssh, 'pwd');
  sssh.pipe(process.stdout);

  ssh.connect(settings);

This will output the path to the current folder after establishing an SSH connection.

Contributions

  • are welcome;
  • should be tested;
  • should follow the same coding style.

License

The MIT License

Copyright (c) 2014 Ruslan Bredikhin