I want to set up port forwarding with ssh like so:
ssh user@10.10.10.10 -L 5656:remoteserver:80 -N
and then run a curl command:
curl http://localhost:5656/my/endpoint/
I can accomplish this just fine using two commands, but how can I combine them into a single working command?
I'm on OSX if that matters.