Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

SSH.Tunnel.Run

Creates a SSH tunnel on the session.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SSH 8.5 Yes Yes Yes Yes Yes
MBS( "SSH.Tunnel.Run"; SSH; RemoteHost; RemotePort; LocalHost; LocalPort )   More

Parameters

Parameter Description Example value
SSH The SSH session reference number from the plugin. $ssh
RemoteHost The remote host to forward to.
Can be IP or domain name.
"monkeybreadsoftware.de"
RemotePort The destination port to connect to. 80
LocalHost The local interface to listen on. "127.0.0.1"
LocalPort The local port to listen on. 8000

Result

Returns OK or error.

Description

Creates a SSH tunnel on the session.
Please create, connect and authenticate a session for use as a tunnel.
For best result, please don't use the same session for other things while tunnel is running.

The tunnel allows currently one connection through it, e.g. run one tunnel per MySQL connection to go through the tunnel. If you need multiple tunnels, please create multiple SSH connections.

The MBS Plugin can spin of a new preemptive thread to run a tunnel to forward a SSH connection from local socket to remote server via SSH tunnel.
This works well e.g. for database access with MySQL.
By using our own thread, we are not blocking or blocked by your FileMaker scripts.

See also

Created 22nd October 2018, last changed 22nd October 2018


SSH.Tunnel.Messages   -   SSH.Tunnel.Running

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos