Skip to content

wxyucs/sshtunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sshtunnel

A containerized auto-restart ssh tunnel. Provides SOCKS proxy(port 1080) and HTTP proxy(port 1087).

Usage

  1. Clone this repository:
git clone https://github.com/wxyucs/sshtunnel.git
  1. Put a identity file into the ssh_keys dir:
cp /path/to/identity_file ./ssh_keys/
  1. Set the environment variables:
cp example.env my.env
vi my.env
  1. Start the sshtunnel:
make run
  1. Test:
export HTTP_PROXY=http://localhost:1087
export HTTPS_PROXY=http://localhost:1087
curl ifconfig.me