npm install --save sssh
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.
- are welcome;
- should be tested;
- should follow the same coding style.
Copyright (c) 2014 Ruslan Bredikhin