ssh -D 8080 -N user@server

Category: Networking

ssh -D 8080 -N user@server

Create a SOCKS5 proxy tunnel via SSH

-D creates a dynamic SOCKS5 proxy on local port 8080. -N means don't execute a remote command (just forward). Configure your browser to use SOCKS5 proxy localhost:8080 to route all browser traffic through the remote server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.