Port forward – SSH reverse tunnel

  • 192.168.0.183:8080 → laptop 192.168.10.13 → ESP32 192.168.10.96:80
#on  laptop 192.168.10.13

ssh -N -R 0.0.0.0:8080:192.168.10.96:80 root@192.168.0.183
  • On 192.168.0.183
curl http://127.0.0.1:8080
  • If want other machine to access edit /etc/ssh/sshd_config and restart ssh
GatewayPorts yes

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *