ssh-port-forward
v0.1.4
Published
Simplified SSH port forwarding.
Downloads
3
Maintainers
Readme
ssh-port-forward
Simplified SSH port forwarding.
Installation
$ npm install -g ssh-port-forward
Usage
$ ssh-port-forward --help
Local port forwarding example - forward 127.0.0.1:3306
to 127.0.0.1:3306
on user@hostname
:
$ ssh-port-forward -t local -r 127.0.0.0.1:3306 -l 127.0.0.1:3306 -s user@hostname
Tunnel provided by server user@hostname via OpenSSH.
------------------------------------------------------------------------
request -> [ local 127.0.0.1:3306 ] -> [ remote 127.0.0.0.1:3306 ]
------------------------------------------------------------------------
Remote port forwarding example - forward 0.0.0.0:80
on user@hostname
to 127.0.0.1:8080
:
$ ssh-port-forward -t remote -r 0.0.0.0:80 -l 127.0.0.1:8080 -s user@hostname
Tunnel provided by server user@hostname via OpenSSH.
--------------------------------------------------------------------
request -> [ remote 0.0.0.0:8081 ] -> [ local 127.0.0.1:8080 ]
--------------------------------------------------------------------