Linkdocs

Pair your phone

Scan a one-time QR code to give your phone its own key to this computer.

On Linux the installer starts pairing for you. To pair another phone later, or if you installed with --no-ssh, run:

link-host ssh setup

Run it as yourself, not with sudo: Link's SSH server runs as your account.

Setup turns on Link's SSH server, the door your phones come in through, for your account only, and prints a QR code.

In the Link app, tap + and Scan QR code, then point the camera at the terminal. The app connects by itself.

No camera handy? Choose Import from Linux in the app and paste the link-ssh://pair?… code printed under the QR.

The terminal clears once the code is used and says Phone paired. The computer appears in the app's header; its agents, terminals, files and desktop are one tab away.

What happens when you scan

The phone makes its own key and keeps it; it never leaves the phone. The QR code is only a one-time ticket for handing that key over:

  • it works once, for one phone;
  • it expires after 10 minutes;
  • it can't do anything else: no terminal, no files, no commands.

So a photo of an old code is harmless. To pair another phone, run link-host ssh setup again for a fresh code.

Manage paired phones

link-host devices
Paired phones:
  w24gnNwQ  Galaxy S22 Ultra    paired 2026-10-10 · last connected 17 h ago
  IEMN+WcQ  Galaxy S25 Ultra    paired 2026-10-06 · last connected 21 h ago

Remove one: link-host devices remove ID-or-NAME

The id is the start of the phone key's fingerprint. "Last connected" comes from the SSH server's log (journalctl --user -u link-sshd), so it only reaches back as far as your journal keeps.

To unpair a phone (a lost one, say):

link-host devices remove w24gnNwQ

This deletes its key and restarts Link's SSH server, which ends that phone's open sessions. Other phones reconnect by themselves.

Pairing the same computer again

If you pair a computer your phone already has (after reinstalling the app, for example), the app makes a new entry and offers to replace the older one. Replacing removes the old entry and what Link kept for it on the phone. The old key stays allowed on the computer until you remove it with link-host devices remove.

The free app has room for one computer, so to pair your only computer again, first remove it in the app (the settings button next to its name at the top, then Remove computer). Nothing on the computer changes, and its terminals and agents keep running there.

Choosing how the phone connects

By default the phone reaches the computer directly, finding it from any network through a public meeting point. Two options change that:

link-host ssh setup --relay wss://your-relay.workers.dev   # through your own relay
link-host ssh setup --rendezvous off                       # only at the address in the code

How the phone connects explains each mode, and Your own relay sets one up in a minute.

When the address is wrong

Setup picks the address of the computer's default route. If the phone should use another one (a hostname, a VPN address), pass it:

link-host ssh setup --host my-desktop.local

Add a computer by hand

For a computer with its own SSH server and no Link Host pairing code, such as a server you already sign in to:

  1. In the Link app, tap Add computer.
  2. Enter its Address (an IP address or hostname) and your Username there. If its SSH server isn't on port 22, put the port after the address, as in 203.0.113.7:2222, or open Name and port.
  3. Choose Password or Private key, enter it, and tap Check and continue.
  4. Link shows the computer's key under Verify this machine before it sends your password. Compare it with the one on the computer (ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub), then tap Trust and add computer.

On this page