A containerized auto-restart ssh tunnel. Provides SOCKS proxy(port 1080) and HTTP proxy(port 1087).
- Clone this repository:
git clone https://github.com/wxyucs/sshtunnel.git- Put a identity file into the
ssh_keysdir:
cp /path/to/identity_file ./ssh_keys/- Set the environment variables:
cp example.env my.env
vi my.env- Start the sshtunnel:
make run- Test:
export HTTP_PROXY=http://localhost:1087
export HTTPS_PROXY=http://localhost:1087
curl ifconfig.me