Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit f6ac1a1 Sep 13, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries update lib Sep 13, 2019
.gitignore add gitignore Dec 20, 2018
LICENSE add MIT license Apr 26, 2014 update readme Dec 20, 2018
tunnel.bash update Feb 16, 2019


        --local-port    <LOCAL_PORT>
        --remote-port   <REMOTE_PORT>
        --remote-user   <REMOTE_USER>
        --remote-host   <REMOTE_HOST>
        --identity-file <IDENTITY_FILE>

    --help               Help page
    --configure          Config remote server to support forwarding (optional)
                         This option will require arguments '--remote-user' and '--remote-host'
    --local-port         Local port number (require)
    --remote-port        Remote port number (require)
    --local-to-remote    Forward request from local machine to remote machine
                         Either '--local-to-remote' or '--remote-to-local' must be specified
    --remote-to-local    Forward request from remote machine to local machine (require)
                         Either '--local-to-remote' or '--remote-to-local' must be specified
    --remote-user        Remote user (require)
    --remote-host        Remote host (require)
    --identity-file      Path to private key (*.ppk, *.pem) to access remote server (optional)

    ./tunnel.bash --help

    ./tunnel.bash --configure --remote-user 'root' --remote-host ''
    ./tunnel.bash --configure --remote-user 'root' --remote-host '' --identity-file '/keys/my-server/key.ppk'

    ./tunnel.bash --local-port 8080 --remote-port 9090 --local-to-remote --remote-user 'root' --remote-host ''
    ./tunnel.bash --local-port 8080 --remote-port 9090 --local-to-remote --remote-user 'root' --remote-host '' --identity-file '/keys/my-server/key.ppk'

    ./tunnel.bash --local-port 8080 --remote-port 9090 --remote-to-local --remote-user 'root' --remote-host ''
    ./tunnel.bash --local-port 8080 --remote-port 9090 --remote-to-local --remote-user 'root' --remote-host '' --identity-file '/keys/my-server/key.ppk'
You can’t perform that action at this time.