I'm trying to set up tunneling and I'm testing by trying to a ubuntu iso (torrent instead of http). On my machine I'm using
ssh -4 -g -N -D 127.0.0.1:7123 root@rpi_addr
I'm getting errors and not able to download anything
channel 14: open failed: connect failed: Connection refused
From my understanding -4 forces everything to be ip 4 (my isp doesn't offer ipv6), -g should allow connections from my server to me, -N means I don't want/need to execute any shell commands and -D is where the socks server should be at? I have a feeling this might be a UDP problem but I'm not sure. Especially since it's saying Connection refused
If it matters, my host pc is windows 10. I tried using ssh that comes with windows 10 and with git-bash. The server I'm connecting to is a raspberry pi
ssh? or when you try to use the proxy? (2) What are the errors from? From thessh? (3) What program with what settings are you using to actually test the connection? (4) "-gshould allow connections from my server to me" – If you mean "from the pi to the Windows 10" then possibly not in the way you mean. Are you sure you want a socks proxy? (5) Please read this: How to create a SOCKS proxy withssh.Connection refusedmeans the SSH server could not connect to the requested address on the behalf of the SOCKS client. I guess it's not unusual when torrenting because some trackers or peers may no longer be at their former addresses. (3) I wanted to make sure the program can actually use SOCKS. Your statement about "connections from my server to me" made me suspect you were confusing things. (4)-gcould allow other clients in your LAN to use the7123port of your local machine as a SOCKS proxy. I think-gis irrelevant in your case because you bind to127.0.0.1anyway.