Remote port forwarding with ssh/putty


/ Published in: Bash
Save to your folder(s)

This allow serve web pages to internet behind a firewall, using a linux server with a public IP address running sshd.
We must have root credentials and sshd configured with: GatewayPorts yes


Copy this code and paste it in your HTML
  1. ssh -R *:80:localhost:80 root@public-host-domain -v -N

URL: http://souptonuts.sourceforge.net/sshtips.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.