Running the Fased Agent macOS app with a remote gateway
The macOS app ships asFasedAgent.app. This guide shows the SSH-tunnel path for reaching a gateway on another host without exposing the raw gateway port publicly.
Overview
Quick Setup
Step 1: Add SSH Config
Edit~/.ssh/config and add:
<REMOTE_IP> and <REMOTE_USER> with your values.
Step 2: Copy SSH Key
Copy your public key to the remote machine (enter password once):Step 3: Set Gateway Token
Step 4: Start SSH Tunnel
Step 5: Restart the macOS app
Auto-Start Tunnel on Login
To have the SSH tunnel start automatically when you log in, create a Launch Agent.Create the PLIST file
Save this as~/Library/LaunchAgents/ai.fased.ssh-tunnel.plist:
Load the Launch Agent
- Start automatically when you log in
- Restart if it crashes
- Keep running in the background
com.fased.ssh-tunnel LaunchAgent if present.
Troubleshooting
Check if tunnel is running:How It Works
| Component | What It Does |
|---|---|
LocalForward 18789 127.0.0.1:18789 | Forwards local port 18789 to remote port 18789 |
ssh -N | SSH without executing remote commands (just port forwarding) |
KeepAlive | Automatically restarts tunnel if it crashes |
RunAtLoad | Starts tunnel when the agent loads |
ws://127.0.0.1:18789 on your client machine. The SSH tunnel forwards that connection to port 18789 on the remote machine where the gateway is running. Keep the remote gateway on loopback unless you intentionally switch to a tailnet bind or trusted proxy design.