SSH terminal

Tools → SSH terminal, for administrators, developers by default and whoever is a developer on at least one project: real terminals in the browser to any server, opened from Studio's server.

Connections
Host, port, user and a key or a password, saved per person; favourites stay on top. A click opens a terminal; open as many as you like, in tabs or all side by side.
Sessions stay open
Another page of Studio, a reload, even a closed tab: the shell keeps running on the server and the SSH page (or the project's Terminal tab) takes it back when you return, with what it wrote meanwhile. A session waits half an hour for you (SSH_GATEWAY_LINGER, in seconds), only for you; × ends it for good.
Groups, search
Put connections in groups of your own, with a colour (Clients, Agency…), as in Databases: from Move to group in a connection's menu, or in its form; the connections shared with you go in your groups too, and nobody else sees how you sorted them. A chip per group shows that group alone, or the connections in none; the search finds a name, a host, a project or a group.
Keys
Generate Ed25519 or RSA 4096, or import yours (OpenSSH, PEM, PuTTY, with its passphrase, which is not kept). The page shows the public key and the command that adds it to authorized_keys. The same keys are in Settings → Accounts → SSH keys.
Host keys
The first connection shows the server's fingerprint and asks; from then on a different key is refused.
On a phone
Under the terminal, the keys a phone keyboard lacks (Esc, Tab, Ctrl, the arrows) and Paste. Paste reads the clipboard when the phone allows it. When it does not, a field opens: long-press there and paste, then Insert. The text is typed into the terminal as a paste, so a shell or an editor that asked for bracketed paste receives it as one paste.
Files
Terminal ⇄ Files, above the terminals (or Browse files in a connection's menu), turns a session into the file manager of its host, the same as a project's Files tab: tree, editor, uploads of files and folders, drag and drop, Move to…, zip and unzip, download. It starts in your home on the server; the path bar goes anywhere else.
Shared with a project
Tie a connection to a project and the administrators and the project's developers find host, port and user ready, tagged with your name, here and in the project's Access tab. Each connects with a key or password of their own: credentials are never shared.
The SSH page: connections in the groups Clients and Agency and one in no group, a search and a chip per group; a session switched to Files, the server's home in a tree, README.md open in the editor
SSH → Files. The connections in their groups, with the search and a chip per group; a session on a server turned into its file manager; Terminal brings the shell back, as it was.

The file manager speaks SFTP from Studio's server with your own key or password, only to a host whose key was accepted in the terminal; zip and unzip run on the server and need zip and unzip there. It can do what you could do in the shell, nothing more.

Private keys and passwords are encrypted with APP_KEY and never reach the browser. The page asks Studio for a one-time ticket (60 seconds) and opens a WebSocket to the gateway, studio-ssh (ssh-gateway/, behind Caddy at /ssh/ws), which redeems the ticket on the loopback and only then sees host and secret. The page asks for your password again, as Settings → Security does.