This is a common configuration issue! The error happens because your Mac's Clawdbot is still trying to connect to its local gateway (127.0.0.1:18789) instead of the remote Linux server's gateway.
When you set up SSH on the Mac, that just handles the SSH tunnel β but Clawdbot itself still needs to know where to connect.
Fix: On your Mac, configure the remote gateway URL:
clawdbot gateway set url --gatewayUrl "ws://YOUR_LINUX_SERVER_IP:18789"
Or edit ~/.clawdbot/clawdbot.json:
{
"gateway": {
"url": "ws://YOUR_LINUX_SERVER_IP:18789"
}