ojob.io/ssh/tunnel

Usage

ojob ojob.io/ssh/tunnel host=a.target.com user=root port=22 key=/path/to/key.pem pass=mypass insecure=true localPorts=8080:80,8081:81 remotePorts=80:80,81:81 timeout=10000 wait=2500 askpass=true 

Description

Establishes a SSH tunnel to a remote server.

Expects

Name Description
host The SSH host to connect to
user The SSH user to connect as
port The SSH port to connect to
key The SSH key to use
pass The SSH password (or key password) to use
insecure If true, will not check the server's host key
localPorts The local ports to forward comma-separated
remotePorts The remote ports to forward comma-separated
timeout The connection timeout
wait The wait time between checks
askpass If true, will ask for the password