How remote connections are protected
Every path from your window to code on another machine is encrypted and authenticated in both directions, and Ferris IDEA refuses a connection rather than weakening it. This page lists the rules in plain words, how to check your set-up against them, and what to do when one refuses. The design and threat model behind it is the project’s decision record on network security for remote connections (ADR-0025).
The rules
Section titled “The rules”| Rule | What it means for you |
|---|---|
| Three kinds of channel, all encrypted | SSH for hosts with an SSH server; the paired channel (Noise with ML-KEM-1024) for paired hosts; TLS 1.3 for the WebSocket endpoint. There is no plaintext path in any build and no setting that adds one. |
| Post-quantum key exchange, always | Every ssh that Ferris IDEA starts, for projects, terminals, files, Docker over SSH, database tunnels and Git, offers only mlkem768x25519-sha256 and sntrup761x25519-sha512. The paired channel combines X25519 with ML-KEM-1024; the WebSocket endpoint accepts only X25519MLKEM768. A recorded session stays confidential even if one of the two methods is broken later. |
| Keys are pinned, never accepted on the fly | SSH host keys come from your known_hosts; an unknown or changed key is refused, never accepted from inside Ferris IDEA. A paired host’s key is pinned after you compared six digits on both sides. |
| No passwords through Ferris IDEA | SSH uses your keys and agent; Ferris IDEA never asks for, reads or stores a password, passphrase or private SSH key. |
| Nothing listens openly | The SSH backend opens no TCP port. A paired listener exists only while you run serve --pair, binds 127.0.0.1 unless you add --allow-network, and answers nothing but handshakes from pinned keys. |
| Unprotected protocols stay local | Debug adapters, language servers and database ports on a host are reached through the encrypted session. A port you forward binds to your loopback address only; debug ports are never forwarded. |
| Rights per device, deny by default | An SSH session has your account’s rights. A paired device gets view until you grant more, and a narrowed or revoked device loses its sessions within a second. |
| Every remote action is logged | The side that acts writes time, peer, method, target and outcome to remote/audit.jsonl, never content or secrets. The log stays on that machine. |
| Paths stay inside the project | Paths on the wire are relative to the project folder; .., absolute paths and links leading out are refused in both directions, and the host cannot make your window write outside its own state. |
Check your set-up
Section titled “Check your set-up”-
Your OpenSSH offers a post-quantum method. OpenSSH 9.0 brought
sntrup761x25519-sha512, 9.9 brought ML-KEM: -
The host offers one too. Connect once in a terminal; if Ferris IDEA later says the host offers no post-quantum key exchange, update OpenSSH on the host. With
FERRIS_IDEA_SSH_KEX=mlkemFerris IDEA allows ML-KEM only. -
Jump hosts use
ProxyJump. Every hop of aProxyJumpgets the same options and must negotiate a post-quantum method itself. AProxyCommandof your own runs a program Ferris IDEA cannot hold to the rule, so it is refused unless you switch onssh.allowOwnProxyCommandin Settings; each such connection is then written tossh-proxy-command.log. -
Compare digits for real. When pairing, read the six digits on both screens. A machine in the middle produces different digits on the two sides.
One exception you should know
Section titled “One exception you should know”Git over SSH to Azure DevOps hosts may fall back to two classical Diffie-Hellman groups after the
post-quantum methods, because those servers offer nothing else. It is on by default for those
hosts only and can be switched off with the setting git.ssh.allowClassicKexForAzureDevOps.
When a connection is refused
Section titled “When a connection is refused”| Message | What to do |
|---|---|
the local ssh client offers no post-quantum key exchange |
Update OpenSSH on your computer (9.0 or later, ML-KEM from 9.9). |
<host>: the host offers no post-quantum key exchange … nothing was sent |
Update OpenSSH on the host. |
the jump host <hop> offers no post-quantum key exchange |
Update OpenSSH on that hop. |
| An unknown host key | Check the fingerprint with the host’s owner over another channel, then connect once in a terminal and accept it there. |
| A changed host key | Stop. Find out why the key changed before you remove the old entry; it can mean an attack. |
| A changed key of a paired host | The host’s identity changed (new installation, deleted key file) or someone is in the middle. Check on the host with serve --devices and its start line before you pair again. |
Status of the parts
Section titled “Status of the parts”- SSH projects and the SSH paths of files, terminals, Docker and Git: Experimental
- Paired hosts and devices: In progress
- WebSocket endpoint for a browser: In progress, never run in a real browser
- A relay for devices that cannot reach each other: Planned