Skip to content

Work on a remote host over SSH

A folder on a machine you reach with ssh opens as a normal project window. The files, the language servers, Git, terminals and programs stay on the host; the window on your computer keeps a copy of each open text, so typing never waits for the network. Remote projects over SSH are Experimental.

  1. Your windowYou pick a host and a folder in Remote Development.
  2. Your sshThe system ssh connects with your keys, your ~/.ssh/config and your known_hosts.If not: Refused: unknown or changed host key, or no post-quantum key exchange. Nothing is sent.
  3. Backend checkFerris IDEA finds or uploads its backend of the same build and compares its SHA-256.If not: Refused: the backend on the host does not match this build.
  4. Backend on the hostferris-idea serve --stdio opens the folder and owns the texts, servers, terminals and runs.
  5. SessionEdits, files and output travel inside the SSH channel; no port is opened on either machine.
The backend runs as your own account on the host and has exactly its rights.
  • ssh reaches the host without a question. Ferris IDEA starts your system ssh in batch mode: it uses your keys, your SSH agent, ~/.ssh/config and known_hosts, and never asks for or stores a password or passphrase. Log in once in a terminal first, so the host key is in your known_hosts and your key is loaded:

    Terminal window
    ssh build-host.example true

    Prints nothing and exits with 0 when the host is ready for Ferris IDEA.

  • OpenSSH 9.0 or later on both ends. Every connection uses a post-quantum key exchange (mlkem768x25519-sha256, or sntrup761x25519-sha512 with OpenSSH 9.0 to 9.8) and nothing else. Why, and what the refusals say: How remote connections are protected.

  • A host Ferris IDEA has a backend for. Linux and macOS on x86-64 and arm64. Windows hosts are a preview: Windows hosts and WSL. On a host of your own platform the program you run is used as the backend; for other platforms the backends are built with scripts/build-backends.sh and found in backends beside the program or in FERRIS_IDEA_BACKENDS_DIR.

  1. Choose File › Remote Development…. The same entry is in the project popup and on the Welcome window.
  2. Pick a host from the list or type one. The list holds the hosts of your ~/.ssh/config (with user, host name and port as ssh -G resolves them), the hosts you added with Add Host…, and your recent remote projects, newest first. You can type an alias, user@host or user@host:port.
  3. The dialog shows your home folder on the host. Go into folders, or type a path, and choose Open for the folder shown.
  4. Connecting shows each step with a Cancel button: connect (10 s limit), check or upload the backend, start it, open the session. Cancel ends whatever was started on the host.

The project window opens with the folder’s name and — build-host.example in its title. The status bar shows the connection: Connected with the round-trip time, Reconnecting with the attempt and the time left, or Disconnected. A click on it offers Reconnect, Disconnect, Show Connection Log and Backend Info (version, build, host platform, folder and session).

Add a host without editing your SSH configuration

Section titled “Add a host without editing your SSH configuration”

Add Host… in Remote Development keeps a host in Ferris IDEA’s own list: an alias, the host name, the port, the user and an identity file. It is written as OpenSSH configuration to ssh/config in Ferris IDEA’s settings folder (mode 0600), so ssh -F <that file> <alias> reaches the same host from a terminal. Your ~/.ssh/config and the folder ~/.ssh are never written; their hosts are listed read-only.

Everything that reads or changes the project goes to the backend; nothing of the project is copied to your computer except the texts of open editors.

Task Where it happens Status
Project tree, create, rename, delete fs.* on the host; changes made on the host show within about a second Experimental
Editing and saving your window’s copy; each edit is sent and acknowledged; saving writes on the host, mode kept, local history on the host Experimental
Problems, completion, go to declaration, rename the language servers run on the host Experimental
Find in Files, Search Everywhere, Go to File / Class / Symbol the host’s index Experimental
Commit, branches, log, fetch, pull, push, stash, merge, rebase Git on the host; credentials stay on the host Experimental
Terminal a shell of your host account, in the backend; the tab is named after the host Experimental
Run configurations and tests .ferris-idea/run.toml of the host project and the detected ones; output and the test tree in the Run tool window Experimental
Debug and ports Debug and forward ports on a host In progress

The guides for the terminal, run configurations and Git apply unchanged.

The backend runs the host project in safe mode until the host’s own trust list trusts it: language servers start in their safe configuration, run configurations and Git hooks do not run. The window shows the trust banner; Trust Project adds the folder to the trust list on the host. The trust list of your own computer is never used for host folders.

You can keep typing when the connection drops.

  1. While disconnected every editor stays editable and new edits wait in a queue; the tab shows the unsaved marker. Saving says Not saved — reconnecting to build-host.example and is carried out once the connection is back. Tree changes and other host actions are refused with the same reason; nothing that needs the host fails silently.
  2. Reconnecting starts by itself after 1, 2, 4, 8 and 16 seconds and then every 30 seconds, as long as the backend waits for you (10 minutes by default). Reconnect in the connection menu tries at once. A laptop that slept reconnects the same way after waking.
  3. After the resume the backend replays what you missed, your waiting edits are applied once, and terminals and runs, which kept running on the host, show their last 1 MiB of output again.
  4. When the backend is gone (the waiting time passed, or the host restarted) the window starts a new backend and compares each document that had unsaved changes with the file on the host. Unchanged on the host: your edits are applied. Changed on the host: your text stays as an unsaved version and you choose to compare, overwrite or reload. The connection log records which document went which way.
  5. A crash of the window leaves a recovery copy of every document with unsaved edits (mode 0600, in the window’s own state folder). Opening the remote project again offers to restore them.

Closing the project asks about unsaved remote files as for local ones; the backend ends when no window is left.

One file without a project: the Remote Host tool window

Section titled “One file without a project: the Remote Host tool window”
Edit a file on an SSH host
Ferris IDEA window with the Remote Host tool window at the bottom: header build-host and the buttons SSH Terminal, Hosts, New File, New Folder, Rename, Delete and Start Backend; the Path field shows the demo-shop folder on the host, with .ferris-idea, .git, shop, tests and README.md below
  1. Ferris IDEA window with the Remote Host tool window at the bottom: header build-host and the buttons SSH Terminal, Hosts, New File, New Folder, Rename, Delete and Start Backend; the Path field shows the demo-shop folder on the host, with .ferris-idea, .git, shop, tests and README.md below
  2. The row shop/ is selected in the Remote Host list
  3. The Path field shows demo-shop/shop and the list holds .., __init__.py, cart.py and server.py
  4. The row cart.py is selected in the Remote Host list
  5. The editor shows cart.py with the dataclasses Item and Cart in a tab, while the Remote Host list below still shows the shop folder with cart.py selected

Real frames of the application · ferris-idea drive, then ferris-idea drive screenshot after each step (docs/site/scripts/record-tour.py) · v1.6.0 debug build of main, 2026-12-04 · throwaway local project; Remote Host connected to a throwaway SSH server on 127.0.0.1 with the made-up project demo-shop; theme Ferris IDEA Dark

For a quick change to a configuration file, open View › Tool Windows › Remote Host Experimental. Pick a host, browse its folders as a tree, and press Enter on a file: the file is copied into your cache folder and opened. Saving uploads it, and a file that changed on the host since you read it is never overwritten by a save alone. The window also creates, renames and deletes files and folders, takes files dragged from the Project tree (never replacing one), and SSH Terminal opens an interactive ssh session in the folder shown. It needs only POSIX tools on the host, so it works on any Unix host without installing anything.

Message What it means What to do
The host key is unknown, or has changed ssh refused it in batch mode; Ferris IDEA never accepts a host key itself Connect once in a terminal and check the fingerprint with the host’s owner; for a changed key, find out why before you remove the old one
<host>: the host offers no post-quantum key exchange The host’s OpenSSH is older than 9.0; nothing was sent Update OpenSSH on the host
the local ssh client offers no post-quantum key exchange Your own OpenSSH is older than 9.0 Update OpenSSH on your computer
the SSH configuration runs its own ProxyCommand A ProxyCommand could start a connection without the post-quantum rule Use ProxyJump instead; every hop then gets the same options
no backend build for <platform> No backend exists for the host’s system and processor Build the backends, or install ferris-idea-serve there and pair it
the backend on the host does not match this build The uploaded copy’s SHA-256 differs from your program’s; the copy was deleted Open the project again; if it repeats, check what changes files in ~/.cache/ferris-idea/bin/ on the host
A backend older than the window It would not serve every method the window needs Build the backends again, or update Ferris IDEA on the host

The connection log (status bar, Show Connection Log) has each step with its time. The backend writes what it did for you (open, save, tree changes, runs, never content) to remote/audit.jsonl in your state folder on the host.

Agents open and watch remote projects with the tools below. A real open needs the rights ssh and run that you grant; remote_project_open, remote_project_close and remote_backend_start default to a dry run that only returns the plan. On the host, an agent has the agent rights of the host project, never the window’s. The file, search, Git and run tools act on an open remote project when they are called on its route, /mcp/<id> of the window’s MCP server.

  • remote_backend_callchangessshCall a tool of a Ferris IDEA backend started with remote_backend_start, e.g.
  • remote_createchangesdry run by defaultsshCreate an empty file (kind file, default) or a folder (kind dir) on an SSH host; refused when something of that name exists.
  • remote_deletechangesdry run by defaultsshDelete a file, link (never followed) or empty folder on an SSH host; a non-empty folder only with recursive: true.
  • remote_documentsreadsThe open documents of a remote project (SPEC-0317, Experimental) with their revision on the backend, pending (unacknowledged) edits, modified flag, whether a recovery copy exists, whether a local version was kept and whether the host file changed under unsaved edits.
  • remote_downloadchangesdry run by defaultsshwriteDownload a file or folder of an SSH host into a folder of the workspace under its own name, as dropping it from the Remote Host list on a folder of the Project tree does.
  • remote_host_addchangesdry run by defaultsettingssshAdd a host to Ferris IDEA's own SSH host list (an OpenSSH config in the user's settings folder; ~/.ssh/config is never written).
  • remote_host_probechangessshWhat opening a host would use, without changing anything (SPEC-0321, Experimental): the transport, the host's system and processor, and the backend build picked for it.
  • remote_host_removechangesdry run by defaultsettingsRemove a host from Ferris IDEA's own SSH host list; a host of ~/.ssh/config is refused, Ferris IDEA never changes that file.
  • remote_hostsreadsSSH hosts: Ferris IDEA's own host list first (source "ferris-idea", changed with remote_host_add and remote_host_remove), then the hosts of ~/.ssh/config and its includes (source "ssh_config", never changed by Ferris IDEA), each with the config file it comes from and the user, host name and port ssh -G resolves; nothing is connected.
  • remote_listchangessshList a folder on an SSH host (default: the home folder): resolved absolute path, then folders and files by name with a flag for symbolic links.
  • remote_project_closechangesdry run by defaultsshwritequitClose a remote project (SPEC-0317, Experimental).
  • remote_project_openchangesdry run by defaultrunsshOpen a folder on an SSH host as a remote project (experimental): this build's backend runs on the host (found or uploaded, checked by SHA-256) and owns the documents; the session survives network breaks.
  • remote_project_reconnectchangessshReconnect a remote project at once (SPEC-0317, Experimental): resumes the session through ferris-idea serve --attach (missed changes replayed, pending edits applied once), or when the backend is gone starts a new one and reconciles each document (followed: the host file was unchanged and the edits went to the new backend; kept: the host file changed, the window's text stays as a local version).
  • remote_projectsreadsThe remote projects open in this server and in Ferris IDEA's project windows (SPEC-0317, Experimental): host, folder, state (connected, reconnecting with the attempt and the time left of the host's reattach period, disconnected), round trip of a heartbeat, backend version and platform, pending edits and unsaved documents; window: true for a project shown in a window.
  • remote_readchangessshRead a file on an SSH host (at most 10 MiB) as UTF-8 text (invalid bytes replaced) with its stamp (POSIX cksum), to pass to remote_write so a change made on the host meanwhile is not overwritten.
  • remote_renamechangesdry run by defaultsshRename or move an entry on an SSH host: to must not exist yet and its folder must.
  • remote_uploadchangesdry run by defaultsshUpload a file or folder of the workspace into a folder of an SSH host under its own name, as dropping it from the Project tree on the Remote Host list does.
  • remote_writechangesdry run by defaultsshWrite a file on an SSH host (temporary file renamed into place, mode kept).