Mole is a tool for creating SSH Tunnels using a declarative config. It can create multiple SSH tunnels.
Mole expects a
config.yml in the same directory or
$HOME/.mole/ directories. Configuration can be written in either
json, mole can handle both formats.
tunnels: - ssh_address: 184.108.40.206:22 local_address: 127.0.0.1:4446 remote_address: 127.0.0.1:4445 ssh_user: root ssh_auth_method: password ssh_password: super-secret - ssh_address: 220.127.116.11:22 local_address: 127.0.0.1:6379 remote_address: 127.0.0.1:6379 ssh_user: root ssh_auth_method: password ssh_password: super-secret
ssh_address: Address of the remote server which facilitates tunneling
local_address: Local Ip and Port for the tunnel
remote_address: Remote IP and Port for the tunnel
ssh_user: Remote SSH user
ssh_auth_method: Can be either
password. Incase of
ssh_passwordis mandatory. Default is
ssh_password: Password for SSH