On the remote host add to /etc/ssh/sshd_config
:
GatewayPorts yes
And restart ssh (Ubuntu shown):
sudo service ssh restart
Then connect local 8080 to the remote 8080:
ssh -nNT -R 8080:localhost:8080 user@x.x.x.x
On the remote host add to /etc/ssh/sshd_config
:
GatewayPorts yes
And restart ssh (Ubuntu shown):
sudo service ssh restart
Then connect local 8080 to the remote 8080:
ssh -nNT -R 8080:localhost:8080 user@x.x.x.x