Termfold for iPhone
The host list
The first screen lists Macs you paired and Servers you added. Tap one to open a terminal. Swipe a row to the left:
- Delete removes it and its saved key.
- Settings (a Mac) or Edit (a server) opens its settings.
The + menu has Pair a Mac and Add SSH host. The gear in the corner opens the app settings.
Opening a terminal
If Require unlock to open a terminal is on (the default), iOS asks for Face ID, fingerprint or the passcode first. iPhone Duo uses the passcode.
The terminal
- Top bar. Back, the tabs, + for a new terminal (on the same host or another), the network indicator, the keyboard button and the settings.
- Tabs. Touch and hold a tab for Reconnect and Close. The cross on the current tab closes it.
- Key bar. Above the keyboard: esc, ctrl, alt, tab, home, end, page up, page down, ^C and ^D. Tap ctrl or alt, then a letter.
- Cursor. Tap a place on the current command line to move the cursor there.
- Font size. Pinch to change it.
- Connection problems. A message appears over the terminal with Retry and Close.
On iPhone Duo the closed screen shows the same terminal. With the Duo half open the keyboard sits on the lower screen and the key bar follows it.
Settings
Appearance
- Preview shows how the terminal looks right now.
- Match system appearance (on by default). The whole app and the terminal follow the iPhone: dark in dark mode, light in light mode. Then you choose a Dark theme and a Light theme.
- When it is off, you choose one Theme and the app is light or dark to match it.
- Dark themes: Termfold, Pro, Dracula, Nord, Solarized Dark, Gruvbox. Light themes: Paper, Solarized Light, GitHub Light.
- Font: SF Mono, Menlo, Courier New or Andale Mono. Font size: 9 to 28 points.
- Cursor: block, underline or bar. Blinking cursor turns the blink on or off.
Startup command
Runs at the start of every new session, for example tmux attach || tmux. A command set on a host replaces it.
Keyboard
Choose the system keyboard, or a built-in layout: United States (QWERTY), or Compact with a shortcut row.
Security
- Require unlock to open a terminal.
- Quit everywhere and clean up closes all sessions and erases every host, saved key and pairing from this phone. Remove the phone in the Mac app too if it is lost.
Settings of one Mac
Swipe a Mac to the left and tap Settings:
- Name of the Mac in the list.
- Allow terminal to set the clipboard. Programs on the Mac can copy text to the clipboard of the phone. Allowed by default. Turn it off to block this.
- Startup command for this Mac only.
Pair a Mac
Pair a Mac connects to the Termfold app on your Mac. You scan the QR code, type the name of the phone and the PIN. Under the camera there is a field to paste a pairing link. See Quick start.
Each Mac gets its own key on the phone, so one Mac never learns a key that opens another. Macs paired with an older version keep an older shared key until you pair them again.
Add SSH host
Add SSH host is a general SSH client for other servers (a VPS, a Raspberry Pi and so on).
- Enter a name, the address, the port and the user.
- Choose Password or SSH key. For a key you can generate an Ed25519 key, or paste an OpenSSH Ed25519 private key. Copy public key gives you the line to add to
~/.ssh/authorized_keyson the server. - Optionally set a startup command and the clipboard switch.
The server key is remembered the first time you connect. If it changes, Termfold stops and offers Forget host after you check that this is expected.
Limits of this client:
- Only Ed25519 keys are supported, and servers must offer an Ed25519 or ECDSA host key. A server with only an RSA host key cannot be used.
- The protections of the Mac app (the list of phones, pause, approval, the journal) do not apply to these servers.
- Do not use Add SSH host to reach your own Mac. Use Pair a Mac.