Forum

Hiawatha serving up a web-page over a reverse SSH Tunnel?

phil foster
5 April 2013, 04:30
How can I configure Hiawatha to serve up a web-page over a reverse SSH Tunnel?

I have something like

# ssh -y -R\
${host}:${remote_ssh_port}:localhost:${local_ssh_port}

In the VirtualHost section of hiawatha.conf, the hostname is set to localhost:${local_ssh_port} where local_ssh_port is the port forwarded from the remote host

On the remote computer, when I test the serving up by way of # curl localhost:remote_ssh_port, I do not get the expected served up web-page

Is there anything I'm doing wrong?

Hiawatha version: 8.8
Operating System: Linux
Da JoJo
6 April 2013, 13:51
i think you have to put webserver on the remote localhost and forward the port to localhost and then connect ?
Hugo Leisink
6 April 2013, 20:13
Don't use the port number in the Hostname setting, just use hostname you are using in the URL bar of your browser.
phil foster
8 April 2013, 21:45
Excluding the port number in the Hostname setting does not serve up the web-page on the remote computer over the reverse SSH tunnel. Is there something that I'm missing?
Hugo Leisink
9 April 2013, 14:23
I have no idea what you are doing, but you have to make sure that the hostname of the (virtual) host configuration for Hiawatha matches the hostname that you use in your browser's URL bar.
phil foster
13 April 2013, 02:34
thanks, Hugo. Turns out the port setting is needed in the URL bar to make this work.
This topic has been closed.