I'm trying to use an SSH tunnel for a web proxy. I've done this sort of thing before (for games.) I fire up firefox and tell it to proxy through localhost 12345 for everything. Then, ssh user@host -L 12345:localhost:8080 -N
. When I try to use the browser, I get "connection refused." I enabled all the flags in sshd_config and restarted. No idea how to proceed. HALP!
MacOS – ssh tunnel in osx — connection refused
macosssh
Related Question
- MacOS – Figuring out what is blocking HTTP request on macOS Mojave
- IOS – Can Safari (iPad iOS 12.4.2) be configured to utilize SSH-Tunnel / Port Forwarding
- SSH Port Forwarding Not Working in macOS Catalina
- macOS Network Mojave Unix SSH – Port 22: Connection Refused SSH Error
- SSH tunnel over VPN
- MySQL Connection via SSH Tunnel on macOS Big Sur
Best Answer
I think you are mixing up two commands. Try to set Firefox to Socks5 at port 12345 and run:
From the SSH manual, 'man ssh':
Your command
user@host -L 12345:localhost:8080 -N
forwards your local port 12345 to the remote host's port 8080. This would only work if there would actually be a proxy running on port 8080 on your remote host.