My command looks like:
ssh -p $XXXX -L $YYYY:$IP:3128 $user@$IP
I get an error that says bind: Cannot assign requested address. I tried switching -L to -R. I tried swapping the order of the ports. Nothing seems to work.
I tried adding -v and I get the following in the output:
\ndebug1: Connections to local port $YYYY forwarded to remote address $IP:3128\ndebug1: Local forwarding listening on ::1 port $YYYY.\ndebug1: channel 0: new [port listener]\ndebug1: Local forwarding listening on 127.0.0.1 port $YYYY.\nbind: Cannot assign requested address\n
which suggests that the problem is on the client end, but I have no idea why it cannot assign requested address. (I tried multiple values of $YYYY with the same result, so it isn't just that something is already there.)
Anyone have ideas?
Thanks,
Ben