ssh2-socksv5-proxy
v0.0.2
Published
ssh2 with client socksv5 proxy
Downloads
6
Readme
ssh2 client with socksv5 proxy
Usage
const Client = require('ssh2-socksv5-proxy').Client;
const connection = new Client();
connection.connect({
proxyHost: '<proxy host>',
proxyPort: <proxy port>,
... options from ssh2
})
// all events from ssh2
connection.on('ready', function() {
console.log('ready');
connection.end();
});
connection.on('error', function(error) {
console.log(error)
})
Tor proxy
const Client = require('ssh2-socksv5-proxy').Client;
const newClient = new Client();
newClient.connect({
host: 'localhost',
port: 22,
proxyHost: '127.0.0.1',
proxyPort: 9050,
username: 'user',
password: 'password'
})
newClient.on('ready', function() {
console.log('ready');
newClient.end();
});
newClient.on('error', function(error) {
console.log(error)
})