ssh proxy
How to Set Up a SOCKS5 Proxy with SSH for FirefoxA SOCKS5 proxy over SSH allows you to securely route traffic through a remote server.
This is useful for bypassing restrictions, hiding your IP, or encrypting web traffic.
.ssh/config (Recommended for Automation)
To automate the SOCKS5 proxy setup, add this to ~/.ssh/config:
Host my-proxy
HostName remote-server
User myuser
DynamicForward 8888
ServerAliveInterval 60
ExitOnForwardFailure no
DynamicForward 8888 → Creates a SOCKS5 proxy on local port 8888.ServerAliveInterval 60 → Prevents SSH timeout disconnections.ExitOnForwardFailure no → Ensures automatic reconnection.Then, simply connect by running:
ssh my-proxy
Now, your SOCKS5 proxy is running on localhost:8888.
To route Firefox traffic through the SSH SOCKS5 proxy:
127.0.0.1, Port to 8888.8888.127.0.0.1:8888 as a SOCKS5 proxy.