Your machines
Connections
How Muxin reaches your machines: one ssh connection, or a direct one over QUIC, on your local network or through Tailscale.
Muxin reaches each machine with your own ssh, installs its small agent there, and from then on talks to that agent over one live connection. Requests take milliseconds, terminals open at once, and the sidebar changes the moment a session does. You don’t set any of this up: it happens when you add a machine.
This computer
Muxin
- The app
muxinon the command linemuxin mcpfor your AI agents
-
sshmuxen-agent
Forge
macOS
-
direct · QUICmuxen-agent
Beacon
Ubuntu
-
over Tailscalemuxen-agent
Atlas
Windows 11
Over ssh
By default each machine has one ssh connection, kept open and opened again when it drops. Everything goes through it: checks, terminals, the desktop, files, servers you open in your browser.
Anything ssh accepts works as a machine’s host: an alias from ~/.ssh/config, user@host, a Tailscale name. Muxin uses your keys and your ssh config, so jump hosts, ports and identity files you’ve set up there apply.
Direct connections
Machines you add are connected to directly once they answer. Muxin pairs with the agent there by itself. For a machine you already had, use Connect directly in the Connection card on its page.
Pairing works like this. Each side trusts only the other’s certificate, swapped over ssh, and the agent’s listener runs as a user service on the machine: systemd on Linux, launchd on a Mac, a scheduled task at sign-in on Windows (with a firewall rule).
- Direct connections use QUIC on UDP port 47821. There’s no ssh in between, which helps the desktop and busy terminals most.
- When the direct connection is down, Muxin falls back to ssh on its own, and goes back to direct when it can.
- Use ssh only in the same card turns it off again.
- To keep a new machine on ssh, uncheck Connect to it directly when you add it, or use
muxin add-machine --ssh-only. - Settings › General › Connections turns it off for every new machine.
- Muxin offers it for the others. When a machine is reached over ssh on your local network or your tailnet, the Overview asks “Connect to it directly?”. Keep ssh stops the question.
-
01
Add a machine
Or Connect directly in a machine’s Connection card.
-
02
Pairing over ssh
The app and the agent swap certificates; the listener starts as a user service.
-
03
QUIC on UDP 47821
Muxin connects directly, and falls back to ssh whenever that’s down.
On a Mac, direct connections need the Local Network permission. If the card says the machine is “not reachable on this network”, allow Muxin in System Settings › Privacy & Security › Local Network and reopen it. When the machine is a Mac, allow Muxin Agent (muxen-agent before Muxin 0.10.0) there on that Mac too.
If direct doesn’t connect and neither of those is the reason, the card says “Direct didn’t connect (UDP 47821 blocked?), so it’s ssh.” A firewall between you and the machine is the usual cause.
Muxin for iPad uses direct connections too, with a key of its own. It uses ssh only to add a machine.
On a slow network
Over a direct connection, each terminal has its own lane to the machine. A busy agent printing a lot doesn’t hold up the terminal you’re typing in.
- The terminal you’re typing in goes first. In a split, that’s the pane with the keyboard.
- A terminal you’re not looking at that keeps printing is let go for now. Its session keeps running. Open it again and it comes back with its screen and recent history.
Over ssh, everything shares one connection, so only the second part helps there.
Local network and Tailscale
If Tailscale is on this computer, Muxin uses it to reach your machines away from home. It only reads Tailscale’s status and never changes its settings.
- Home network first. A paired machine is tried at its local-network address first, and at its Tailscale address a moment later; the first to answer wins.
- Moving. When you change networks, connections that stopped working are rebuilt the best way from where you are. Open terminals and desktops carry on (“Reconnecting…”).
- ssh too. If a machine’s host only works at home (a local IP), ssh goes to its tailnet address when the usual one doesn’t answer.
- Peer-to-peer or relay. Through Tailscale, the card says whether traffic goes straight to the machine or through one of Tailscale’s relays, which is slower.
The Connection card shows all of this: Direct or Over ssh, then Local network or Tailscale, and the round trip in milliseconds. Below that, whether the machine is on your tailnet. On a Linux machine that isn’t, Set up Tailscale types the install command into a shell there for you to run.
A forwarded port
If a machine is behind a router or NAT and you forward a UDP port to it, tell Muxin where direct connections reach it with direct_address in config.toml:
[[machine]]
name = "NAS"
host = "nas"
direct_address = "nas.example.com:47822"
VMs Muxin makes get one automatically: their host forwards a UDP port to each VM, and the card says “QUIC through Beacon’s forwarded port 47822”.
Machines reached through another
A machine you reach through another one, with ProxyJump in your ssh config (or -J), is shown under that machine in the sidebar. Its Connection card says “One ssh connection through Beacon”, and “Through Beacon: reachable wherever Beacon is.” When it can’t be reached, Muxin says whether the machine in front of it is off, or up with nothing answering behind it.
Disconnecting
Disconnect (in the Connection card, or a machine’s right-click menu) stops everything for that machine: Muxin closes its connection and stops checking it and reading its sessions. The sessions keep running there.
- It shows as Disconnected until you Connect it again, from its page, its menu, or search.
- It’s kept in
config.tomlasdisconnected = true. - Anything that would reach it fails with “Connect to it first.”
From the command line
muxin connection beacon # how it's reached, and how fast
muxin connection beacon --direct on # pair for direct connections
muxin disconnect beacon
muxin connect beacon