- Add into
/etc/ssh/sshd_configon remote machine (remote.example.com):
GatewayPorts yes- Restart sshd:
/etc/init.d/sshd restart - Connect via ssh
ssh -R 30000:127.0.0.1:80 [email protected]- To check run:
netstat -tunelp | grep 30000/etc/ssh/sshd_config on remote machine (remote.example.com):GatewayPorts yes/etc/init.d/sshd restart ssh -R 30000:127.0.0.1:80 [email protected]netstat -tunelp | grep 30000