Skip to content

Instantly share code, notes, and snippets.

@dionisioviei
Last active August 20, 2021 13:41
Show Gist options
  • Save dionisioviei/a470910ea1ce5305bf9907cb4530f6b5 to your computer and use it in GitHub Desktop.
Save dionisioviei/a470910ea1ce5305bf9907cb4530f6b5 to your computer and use it in GitHub Desktop.
Tunnel on MacOS
ssh -f -N -M -S /tmp/sshtunnel -D 1080 [email protected] -p22
## Then go to Network > Advanced > Proxies > Check SOCKS Proxy > on SOCKS Proxy Server input 127.0.0.1 : 1080
## To remove: UnCheck SOCKS Proxy on Network > Advanced > Proxies and run:
## ssh -S /tmp/sshtunnel -O exit server.domain.com -p22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment