SSH Access
SSH into your remote machines through the flexx relay. Auto-configured ProxyCommand, works behind NAT and firewalls.
Quick start
After registering a remote with flexx remote init, SSH access is automatically configured:
ssh flexx-my-serverThe flexx- prefix is added to your remote's name. If your machine is named dev-laptop:
ssh flexx-dev-laptopHow it works
When you run flexx remote init or flexx setup, flexx adds this to your ~/.ssh/config:
Host flexx-*
ProxyCommand flexx proxy %h %p
StrictHostKeyChecking no
UserKnownHostsFile /dev/nullWhen you ssh flexx-myserver:
- SSH invokes
flexx proxy flexx-myserver 22 flexx proxyopens a WebSocket to the relay at/v1/ssh/<remote-id>- The relay forwards the SSH traffic to the daemon on your remote machine
- The daemon's built-in SSH server handles the session
Finding your remote name
flexx remote list Remotes
NAME TYPE STATUS CAPABILITIES
dev-laptop machine online shell, filesystem, search
gpu-server machine offline -You can also use flexx ssh <remote-name> to display the connection command:
flexx ssh dev-laptopTroubleshooting
Connection refused
Make sure the daemon is running on the remote machine:
flexx statusIf it's stopped, start it:
flexx connectPermission denied
Check that you're authenticated:
flexx auth whoamiRemote not found
List available remotes and verify the name:
flexx remote listMCP Configuration for AI Agents
Configure Cursor, Claude Desktop, ChatGPT, OpenAI Codex, and other MCP-compatible AI tools to connect to your machine via flexx. Includes config snippets and the complete list of available MCP tools.
System Service
Run flexx as a persistent system service on Linux (systemd) or macOS (launchd). Auto-start on boot.