Riftsh vs SSH Port Forwarding, FRP & ngrok for Remote MCP
Exposing a local MCP server over ngrok or ssh -R leaves TLS termination at the proxy in plaintext and lacks OAuth 2.1 consent required by Claude.ai and ChatGPT. Riftsh seals every tool call end-to-end.
| Dimension | Riftsh | SSH / FRP / ngrok |
|---|---|---|
| OAuth 2.1 + DCR for Claude.ai & ChatGPT | Built-in (/.well-known + /register + PKCE) | Manual reverse proxy auth coding required |
| Relay / Proxy Plaintext Visibility | 0 bytes plaintext (X25519 + AES-256-GCM AAD) | Tunnel edge inspects decrypted HTTP JSON bodies |
| Request Forgery Protection | Ed25519 hardware-pinned signature + nonce | Anyone with the public tunnel URL/token can call |
| Multi-Machine Fleet Routing | Single /mcp endpoint with _device parameter | Requires N separate tunnels and N MCP configs |
Verdict
Use SSH/ngrok when exposing generic HTTP web previews; use Riftsh when granting cloud AI agents authenticated, zero-plaintext tool execution across one or more machines.
FAQ
Does Riftsh require opening any firewall ports on my home or office router?
Zero inbound ports. riftsh remote establishes an outbound TLS 1.3 WebSocket connection to /ws/v1/device and traverses NAT, CGNAT, and corporate egress proxies.