Re: TCP_NODELAY - Problem with Reverse SSH Tunnel
Just to be clear what that command means,
Listen on port 19999 on localhost on the remoteIP machine and forward connections back to your Mac on localhost port 22.
Before you connect to localhost port 19999 on your server you need to have something listening on your Mac on localhost port 22. Presumably you want sshd to be doing that but you need to make sure that is the case. So on your Mac you can run "sudo netstat -lntp" to check that sshd (or whatever you want) is actually listening on localhost port 22.
Then you can similarly check on your server that ssh is indeed listening on port 19999 using the same command. By default it listens only on localhost and not on "*" (any interface). So you can only connect to it from within the server itself, not from an external location. In order to connect remotely to server:19999 you would need to override the config of ssh on the server with the GatewayPorts option.
Send tips to: 17raXAGM42vZX21Vcb5HDwq2GMLmVwN4qd