Telechore Usage What's new Play Feedback

These pages are for Telechore 0.6.0 — what's new in it.

Servers: the old layout

The Servers page as it was before 0.5.1. It is still in the app until 0.7.0: “Switch to the old one” at the foot of the server list opens it, and “Switch to the new one” at the foot of this one goes back. What the new layout does is in Servers.

Adding a server saves how to reach a machine: where it is, which account you use, and how you log in. Opening it starts a connection.

On the start page, the button under “Open a folder…” reads “Add a server” while you have none and “Manage servers” once you have one. The “Servers” heading below that button has the same two actions as icons: the plus opens the form for a new server, and the sliders open the list.

The page lists your saved servers. “Add a server” opens the form under the list, a row's “Edit” opens the same form for that server, and “Close” puts it away. An existing server shows its id instead of letting you edit it, because the id cannot change once saved.

A green dot before a server's name means it is connected. Beside “Edit” and “Delete”, “New terminal” (a terminal with a plus) opens a new terminal on that server; it is hidden while a form is open. A server with terminals you left open (see “Keep” in the terminal) lists them under its row, after “Open terminals”, as numbered chips: a green dot for one that is running, an amber dot and ended for one whose shell has ended. Tap a chip to go back to that terminal; on a desktop, one in a window of its own is listed too, and its chip brings that window forward.

“Delete” on a row asks first. It removes the server from this device and closes its connection and any terminals you left open on it. A saved password is mentioned, and removed, only when this server has one; a password held until the app closes is mentioned as that. A key this app holds is removed only when no other server uses it; otherwise it stays under “Keys”. A key file on this machine is left where it is. The question names any server that goes through this one, which then connects directly. Nothing on the server itself changes.

A server's folders

A server's folder is browsed like one on this device (see Tree and sidebar). Its header has “New folder” and “Upload”, which takes files from the system's picker, on a desktop and on Android, and never replaces a folder with a file. Each row ends with “Delete”. A file's row also has “Download”. The icon, and the line under the row, show what this device keeps of that file (see Files offline).

A server that offers no file access (SFTP) still logs in: its terminal opens, and its row says This server offers no file access (SFTP). Its terminal still opens. in place of its folders. Tapping it for its folders says the same, with “Open terminal”.

A folder whose connection has dropped connects again on its own when you next use it. On a phone that happens often: Android cuts the network a few seconds after the app leaves the screen, including while you choose files to upload. A download cut off that way picks up where it stopped once the app is back.

The free edition and Pro

A copy installed from an app store is the free edition. It saves a few servers: two from Google Play, four from the Microsoft Store. It keeps as many terminals running after you leave them (see “Keep” in the terminal), and it limits single column view to 28 PDFs (see Reading PDFs).

“Unlock Pro” lifts all three limits, for one payment with no subscription, and “Restore purchase” gets it back on a new device or after a reinstall. Google Play and the Microsoft Store both sell Pro. All other features are already free.

Past a limit, what you already have keeps working: saved servers can still be edited and deleted, and a PDF you switched to single column view can still use it. Only adding another server, keeping another terminal running, or switching single column view on for another PDF needs Pro.

A copy downloaded as a file, such as the Windows .exe or an APK, has no store to buy from and no limits.

Moving servers to another device

“Export…” on the list shows a QR image for another device running Telechore to scan. Tick what to include: which servers, their host keys, the passwords and passphrases saved on this device, and any key this app made that those servers use. A key this app did not make is never included in a configuration code, and the sheet names any server that will arrive without its key.

The meter shows how much fits. It measures size, not servers: a short host name with no host key takes a third of the room of a long one with a key. The limit is well below what a QR image can hold, because a denser image is harder to scan.

The password beside Export encrypts the code, and you type the same one on the other device. The box is there when the code carries a password, a passphrase or a key; it is “optional, and any length will do”, and the sheet warns you when it is empty or short, but still lets you go ahead. When there is no password, the sheet says so: anyone who photographs the QR image has what is inside. A code with only servers and host keys has no password box and needs none: all it reveals is each server's host, user and starting folder, how it logs in — by password, a key, or the SSH agent — and, from a computer, your user name on it as the sender.

The QR image stays on screen for a minute; closing the sheet removes it sooner. The other device can read the code for three minutes if it was scanned, and for fifteen if it was pasted as text, since text is usually sent by email or message. Nothing is written to disk on either device. The time limit stops the code being used again later, but it does not help against a photo someone has already taken: a photo can be turned back into text and pasted. Against that, only the password protects you.

“Copy as text” is beside the QR image on every device. The QR image is for a device in front of you; the text is for one that is not, and it is the only way to get a code from a phone to a desktop. It is the same code, and the same password opens it.

“Import…” reads a code. Paste it or scan it, and before anything is saved the next screen shows what the code holds: one row per server, with its state, then the host keys, secrets and keys that came with them. Untick anything you do not want.

Each server row has a state:

A row can be both already here and without its key; the label shows the first and the note under it the second.

Host keys are imported only for hosts this device has no key for yet. A host you have already verified keeps its key, whatever the code says.

If a key in the code has the same name as a different key on this device, it is saved under a free name, and the servers that use it are pointed at the new name. The same key arriving twice is saved only once.

In the free edition, servers over the limit arrive unticked. A renamed server counts as new; overwriting an existing one does not.

Nothing is saved until you press “Import”, and “Cancel” discards the code.

A server that a computer names only by its “SSH alias” travels with what the alias says there written in: its host, port, user, and a jump host that is one of the servers in the same code. A phone has no ~/.ssh/config, so it keeps those and drops the alias, and the import says so. A computer that has an ssh config keeps the alias even where its config does not name it, and dials what came with the server. The alias's key files stay on the computer it came from, so such a server asks for a password. A server the alias reaches by ProxyCommand travels with no host unless you chose “Through” or “Directly”, since the app does not run the command; the phone says it will not connect until it has a host or Through.

Copying servers from an ssh config

“Import…” also reads an ssh config. On a computer, “Read ~/.ssh/config” reads your own; “Choose a file…”, on any device, reads one you pick. On a phone, you can also open ~/.ssh/config on a server in the file browser and press “Import servers” on the line under its header. That line shows on a file named config in a folder named .ssh or ssh, and on one named sshconfig or ssh_config. On a computer with no servers yet, a line above the first form offers the hosts of your own ~/.ssh/config too.

Each Host line with a plain name becomes a server, named after that host's first name. The new server is a copy: the host, port, user, key and jump host are written into it, and later edits to the file do not change it. To follow the file instead, type the alias into the “SSH alias” box. Only the blocks that name a host are read. Wildcard blocks such as Host * or Host *.lan, the lines above the first Host, and Match blocks are skipped, so nothing they set is copied. The row still says what a skipped block would have set, such as the User or IdentityFile many configs keep under Host *. Include lines in a file you chose are not followed. The Include lines in your own ~/.ssh/config are.

The next screen lists the hosts before anything is saved, each with what it will do:

A name already taken by a different server is offered a free name, as when importing a code. In the free edition, hosts over the limit arrive unticked. Nothing is saved until you press “Copy”.

The form

The form has three tabs: “Server”, “Auth” and “Terminal”. The label and the id sit above them, and “Save”, “Test”, “Disconnect” and “Close” below. On a phone this keeps what you are typing into on screen above the keyboard.

If Save finds a problem, it opens the tab with the problem, so pressing Save with no host from the Terminal tab takes you to Server. A tab shows a dot while it holds a message you have not seen.

The fields

Above the tabs:

On the “Server” tab:

On the “Terminal” tab:

Under “Advanced” on that tab: “TERM”, the keepalive in seconds, and the environment variables for the server, one NAME=value per line. A name containing password, passphrase or secret, such as DB_PASSWORD, is refused, because these settings travel with the server between devices. Save stays off until the name is removed. Set that variable on the server instead.

These settings are sent along when you export the server. How the terminal uses them is in the terminal.

Where ~/.ssh/config is read

When it connects, Telechore reads ~/.ssh/config for a server only if its “SSH alias” box is filled in. With a name there, Telechore looks that name up in ~/.ssh/config as ssh does, every matching block included. With the box empty, the file is never read for that server, not even Host *, and a “Host” that matches a Host line is still just a host name. “Key files from "alias"” on the Auth tab is a login you choose, like a password or a key. A new server starts on a password, or on “Key files from "alias"” once its alias names a key file that is on this device, as choosing that file's path would; any login you pick yourself stays.

SSH alias filled Host only (and every copy) ssh name
Host Host if filled, else the alias's HostName, else the alias As typed HostName
Port, user The box, else the config, else 22 and your user name The box, else 22 and your user name The config
Wildcard blocks Applied Never read Applied
Key files Only with “Key files from "alias"”: its IdentityFiles, then the agent unless IdentitiesOnly The Auth tab's login IdentityFile, else ~/.ssh/id_*, and the agent
Agent The alias's IdentityAgent, if it names one SSH_AUTH_SOCK, or OpenSSH's pipe on Windows IdentityAgent, else SSH_AUTH_SOCK
Jump host “Through”, else the alias's ProxyJump “Through” ProxyJump
ProxyCommand Refused Not read Run
Match, other settings Not read Not read Applied

Both boxes can be filled: the host then comes from “Host”, and the rest from the alias, as ssh -o HostName=other alias does. A ProxyJump host must be plain, [user@]host[:port] or an ssh:// address, with brackets only around the whole host, and on the last hop of a list only, no user or host starting with -, no % (which ssh expands) and no / in a host out of brackets (which ssh refuses), though a user may have one. A user or host may have =, : (in a host, in brackets only) and ~, but not a ~ a shell would expand — one that starts it, or in name=… one after the = or after a : (u=~root is a home folder, u:~root is not) — nor an = that starts it. One written with quotes, spaces or shell characters is refused with a message rather than read as ssh's shell would read it. Blanks may come before a port's digits (hop: 22), but not inside the hops before the last comma, which ssh hands its shell as one word. As in ssh, host: is the default port, ssh://[host] is the host in the brackets, ProxyJump none with anything after it on the line is a jump host called none, and a none that starts a list of two or more is no hop at all. A jump host named in a ProxyJump that is not one of your servers is dialled as ssh would dial it. The “SSH alias” box itself takes one name as ssh name would: not user@name, an ssh:// address, or a name with spaces or shell characters in it.

How a server logs in

The “Auth” tab lists every key on this device, and the rows that are not keys:

Picking a key only shows it; the server switches to it when you test, install or choose to use it (see Keys, below). A key with a passphrase shows a passphrase box.

Each key in the list shows what kind it is:

A path must start with / or ~, or be the name of a key you imported. Relative paths such as keys/mine are refused.

On a phone, a server that came from a desktop with a key path, the SSH agent or an alias's key files shows that row greyed out, since a phone has none of them. The same goes for a server whose key is no longer on this device. You can still pick the row to see why, but “Save” and “Test” stay disabled, with the reason beside them, until you choose a login this device can use.

Moving a server to another key does not delete the old key: it stays in the list until you remove it with “Remove key "name"”.

The agent is used only where you choose it, with one exception that asks for less rather than more: where the agent already holds the key a server names, the agent signs with it, and the key's passphrase is not asked for. A certificate beside a key file (id_ed25519-cert.pub) is offered before the key, and shown on the key's card; an expired one is not offered. A key on a security key (ed25519-sk) works through the agent: add it with ssh-add, and touch the key when the app says the agent is waiting.

A server that takes only keys says so when you connect, instead of asking for a password it would refuse. Choose a key for it. A server that wants a key and then a password (OpenSSH's AuthenticationMethods publickey,password) offers only the key at first, so it reads the same way: with a key chosen, the password is asked for after the key is accepted.

Where passwords are kept

Passwords are never kept in servers.toml, the list of servers. The form tells you where a password will be kept before you type anything:

If you leave the box empty, you are asked when connecting. That box has two buttons: “Connect” uses the secret once, and “Save and connect” also keeps it. Pressing Enter is Connect, so it never saves anything. “Save and connect” is not offered where there is nowhere to keep a secret, or for a one-time code.

A secret that works is also held in memory until the app closes, so a connection that has to reconnect does not ask again. One used with “Connect” and not saved shows as held until the app closes in the form, not as stored.

“Forget it” appears beside a saved secret. It removes the secret from this device and closes the connection it opened, so it cannot keep working. The box then says it will ask when connecting, since a saved secret is never shown.

Keys

Picking a key in the list only shows it: its public key, and what you can do with it. The server keeps logging in as before. A newly generated key is shown the same way.

To make a key the login, use one of the buttons in the key's card:

While a key is not yet the working login, its card is outlined in amber and says how the server logs in instead. In the list, the row the server is saved with has a “current” tag, and a key you picked but have not saved has a “chosen” tag. A saved key that nothing has logged in with yet shows “not installed”.

You can save at any time. Saving keeps the key you chose, and also keeps the current password or passphrase until something has logged in with the new key.

Under “Add a key…”:

Beside the public key:

A key code can carry a key you imported; a configuration code never does. Exporting servers sends only keys this app made, while a key code is one key you chose to send. Neither can carry a key file on this machine. A key keeps its kind on the other device: a key this app made can be sent on again, and an imported one is still never included when exporting servers.

Test and Disconnect

“Test” at the bottom of the form logs in once with the settings as they are on the form, including unsaved edits, and says what happened. It saves nothing, so a working test still needs “Save”. It always makes a fresh connection, so the answer is about what is on screen now.

“Disconnect” appears when the server is connected. It closes the connection, and any terminal or file view using it stops; the next thing that needs the server logs in again. A folder left open says the server was disconnected, with “Connect” to log in again there. Terminals you left open stay listed, marked ended, and “Reconnect” in one starts a new shell. A connection also closes when its secret is forgotten. Replacing a secret, or changing which key the server uses, leaves what is open running; the next connection logs in with the new one.

Host keys

A host key is the server's own key, checked as in any SSH client, so you know you have reached the machine you saved. It is separate from the key you log in with. A new host asks you once. A host whose key has changed is refused, and the message shows the old key.

New hosts are saved in the app's own file; the one ssh uses is never changed. On a desktop, ~/.ssh/known_hosts is also read, so a host you have used from the command line does not ask again. A phone has no ~/.ssh, so every host is new the first time. Hashed host names, the default on Debian and Ubuntu, are read too.

Two kinds of line are treated specially:

A host with two keys of the same type on file, which is normal after a server is re-keyed, is accepted with either one.

The file behind the list

The list is servers.toml, in the app's configuration folder beside known_hosts and the keys. It is TOML, starting with version = 1, with one [[server]] block per server. You can edit it by hand, or copy it to another computer, since it holds no secrets.

It includes the [server.terminal] table from the Terminal tab, which holds only the settings you changed. Anything the app does not recognise, such as a misspelt name or a newer setting, is kept when the editor saves.