Back to product page

ForwardHost property


Determines the hostname that data will be forwarded to with SSH tunneling.

Type

A String value. The hostname that the server connects to on your behalf.

Syntax

  • Basic
object.ForwardHost [= value]
The ForwardHost(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSSH.
valueA String value.

Remarks

Together with ForwardPort, this property will make wodSSH create a tunnel through its connection with the server to some other host/port, thus enabling you to transmit data travel across the network in encrypted form - between your host and the ForwardHost using SSH.

For more info, please look at the help for the ForwardPort property.

Please note that if you set

       ForwardHost = "127.0.0.1"

(127.0.0.1 is the default value) then the tunnel that is created will end up on the remote server because localhost is interpreted at the remote end.

If you put a real IP value into the ForwardHost property, then only the connection between your computer and the remote server over SSH will be encrypted. The Connection between the remote server with SSH and the server referenced in the ForwardHost property, will be in plaintext.

However, if you look beyond this you will see that you could, for example, connect to your private network (which is behind a firewall) from the Internet. You could connect to your firewall server with wodSSH and then set ForwardHost to point to an address on your private network, say '192.168.1.1', which is a valid IP address for the firewall server (in this example). This way you will be able to access a computer o your private network, to which a direct connection isn't normally available.

All of the above applies only if you have proper login and password combination for the firewall server of course ;)

Platforms

Windows