Securely proxy remote ports to local ports with SSH.
var tunl = require('tunl');
tunl({
map: {
80: 8080
},
ssh: {
host: 'example.com',
username: 'joe',
key: 'path/to/key.pem'
}
});
Command line options are processed using rc
tunl --map.2000 2000 --map.9998 9999 --map.35728 35729 --ssh.username ubuntu --ssh.host example.com --ssh.key path/to/key.pem
tunl --config <configfile>
An ssh host
An ssh login ID
The plaintext password
Alternative to password
, the contents of an ssh key file
Alternative to privateKey
, the path to an ssh key file.
An object mapping remote ports to local ports, the key is the remote port the value is the local port.
The default map is:
{80: 2000}
Sponsored by nearForm