Remote access with SSH
Use Squid through an encrypted SSH tunnel without Shore or Tailscale. Squid runs on your host computer; your other device opens its browser UI through the tunnel.
1. Prepare the host
Start Squid normally and confirm it opens locally. These examples assume Squid listens on 127.0.0.1:8000. Enable your host's SSH server (Remote Login on macOS). Confirm you can connect from your other computer with ssh user@host, using your actual username and reachable hostname or IP address.
SSH must already be reachable from your client network. This method does not bypass a firewall or NAT: outside your home network, you may need router configuration or an existing SSH jump host. Keep Squid bound to loopback; do not forward its HTTP port on your router.
2. Open the tunnel on your other computer
ssh -N -o ExitOnForwardFailure=yes -L 127.0.0.1:8000:127.0.0.1:8000 user@host
Authenticate with your SSH credentials and leave this terminal open. -N opens the tunnel without a remote shell. The first address and port belong to your client; the second address and port refer to Squid on the SSH host.
3. Open Squid
On that same client device, open http://127.0.0.1:8000. Traffic between the devices is encrypted by SSH. Close the tunnel with Ctrl+C when finished.
Other ports and devices
If port 8000 is already in use on the client, change the first port to 18000:
ssh -N -o ExitOnForwardFailure=yes -L 127.0.0.1:18000:127.0.0.1:8000 user@host
Then open http://127.0.0.1:18000. If Squid uses a different port on the host, change the final port instead. For a custom SSH port, add -p PORT.
On a phone or tablet, use an SSH client that supports local port forwarding. Forward a loopback port on that device to 127.0.0.1:8000 on the host, keep the SSH session active, and open that local port in the device's browser. Mobile operating systems may suspend the tunnel when the SSH app is in the background.
Troubleshooting
- SSH times out: check the hostname, SSH server, network route, and firewall.
- Authentication fails: check your SSH username and key or password.
- Address already in use: choose a different client port, as shown above.
- The browser cannot connect: keep the tunnel open, verify Squid is running on the host, and check the final port. SSH may report a destination error only when the browser connects.
For other connection methods, see the Remote Access guide linked from the AgentSquid homepage.