qrtx
GitHubScan two QR codes with your phone, get a direct encrypted pipe between two computers. P2P over iroh.
-
1
First computerscan the QR code
qrtxprints -
2
Second computerscan the other one
no camera? paste the link
diagnostics
no secrets in here; paste into a GitHub issue if something fails
how it works
- QR code = endpoint key + relay + one-time secret, in the URL
#fragment(never sent to the server) - phone runs iroh (wasm), dials each computer, proves it saw the code with the secret
- computers connect directly, NAT hole-punched, relay as fallback; each accepts only the introduced key
- or the phone is the other end: it introduces itself, then sends/receives files (relayed, still end-to-end encrypted)
- this site is static files
usage
Run on both machines, scan both codes. Linux / macOS, x86-64 / arm64. Can copy-paste instead? Each one also prints a --connect command for the other machine.
send files (no install)
curl -fsSL https://qrtx.lol/send | sh -s -- *.jpg notes.txt photos/curl -fsSL https://qrtx.lol/recv | shdirectories ask first (-y skips). recv DIR/ picks the destination, recv NAME renames a single file. No second computer? Scan just one; the phone can receive or send the files itself.
ssh, no open ports
curl -fsSL https://qrtx.lol/sshd | shcurl -fsSL https://qrtx.lol/ssh | sh -s -- me@myserverone session, then the server side exits. Your own ssh does auth and host-key checks; myserver is just the known_hosts name.
forward a tcp port
qrtx listen-tcp --host localhost:5432qrtx connect-tcp --addr 127.0.0.1:5432install
curl -fsSL https://qrtx.lol/install | shcurl -fsSL https://qrtx.lol/run | sh -s -- listen-tcp --host localhost:22scripts fetch the binary for your platform into ~/.cache/qrtx, sha256-checked
github.com/magik6k/qrtx · MIT / Apache-2.0 · inspired by dumbpipe