Manage SSH Tunnels in Blueprint
Start and stop a configured tunnel
Keep the name you used when creating the tunnel and use it again when checking or closing that tunnel. Once the node reports that the tunnel is running, connect the app to the local forwarding endpoint to check that the service is reachable. If only one connection should stop, use the node that closes a named tunnel.
- Configure the SSH tunnel in Project Settings.
- In Blueprint, call Create SSHTunnel to create a tunnel.
- Use Check SSHTunnel Is Running to verify its status.
- Call Close SSHTunnel or Close All SSHTunnel to shut down connections if needed.
Blueprint nodes
After configuring the SSH connection, the following four Blueprint functions are available:
Create SSH Tunnel
Create SSHTunnel (Tunnel Name: String) → Return Value: BoolGive the SSH tunnel a name when you create it.
Check SSH Tunnel Status
Check SSHTunnel Is Running (Tunnel Name: String) → Return Value: BoolChecks if the specified SSH tunnel is running.
Close Specific SSH Tunnel
Close SSHTunnel (Tunnel Name: String) → Return Value: BoolCloses the specified SSH tunnel.
Close All SSH Tunnels
Close All SSHTunnel () → Return Value: BoolCloses all active SSH tunnels.
Tunnel cleanup on shutdown
The default subsystem closes all tunnels when the engine shuts down. If you set a custom Subsystem Class, that subsystem determines how tunnels are closed.