I use the the ssh -R command to create a ssh reverse tunnel in the client side:
ssh -fNR 3389:127.0.0.1:3389 user@remotehost
In the client side, I can use the ps and netstat commands to find the ssh connection and the corresponding pid, local port and remote port behind the reverse tunnel by
sudo ps aux | grep "-fNR 3389:"
I was wondering if is there a way to find the same local port and remote port from the server side ? Thanks a lot for any suggestions.