Docs › troubleshooting
Troubleshooting
The phone shows "Connection failed"
| Message | Meaning and fix |
|---|---|
| This Mac refused the connection | The phone was removed or paused, its access time ended, or you pressed Deny or did not answer the approval. Check the Termfold window on the Mac. Pair again if the phone was removed. |
| This is not the Mac you paired with | The key of the Mac changed, for example after reinstalling. Delete the Mac on the phone and pair again. |
| The connection timed out | The phone cannot reach the Mac. Check that both are on the same network and the Mac is awake. |
| The host is not reachable from this network | The same, or the network blocks devices from each other (guest Wi-Fi). |
| The connection was closed. The Mac may have gone to sleep, turned connections off, or removed this phone | The Mac closed the session. Check Allow connections, the Activity journal and the sleep settings of the Mac. |
| The server closed the connection | The server ended the connection. For a Mac, look in Activity. |
| Connection refused | Nothing listens there. For a Mac: Termfold is not running or Allow connections is off. |
| The host key changed since the last connection (servers) | The server key is not the one remembered. If you did not reinstall the server, stop. If you did, choose Forget host and connect again. |
| Authentication failed (servers) | The server rejected the key or password. For a key, add the public key to ~/.ssh/authorized_keys. |
A session closed by itself
- Idle close. The Mac closes sessions with no typing for the chosen time. Look at the reason in Activity. Change it in the Settings of the Mac window.
- Sleep. If the Mac sleeps the session ends.
- Network. If the phone leaves the Wi-Fi, the session is released within about 30 seconds.
Pairing does not work
- The code and PIN last 90 seconds. Wait for a new pair on the Mac and try again.
- "The Mac rejected the code or the PIN": the PIN was wrong or the code was already used.
- Five wrong tries cancel the pairing and block the address of the phone for 2 minutes.
- "That is not a Termfold pairing code": the camera read something else. Scan the QR code from the Termfold window.
- The camera asks for permission the first time. Allow it in iOS Settings, Termfold.
- The first time iOS asks for Local Network access. If you refused, allow it in iOS Settings, Termfold.
No notifications on the Mac
Allow notifications for Termfold in System Settings, then Notifications. Without them, approval requests are still shown in the window and the menu bar.
The approval window does not appear
Open Termfold from the menu bar. The icon changes to a bell while a request waits. Requests expire after 40 seconds.
The Mac app
- A warning when opening. The app is signed and notarized by Apple. If macOS still warns, open it with a right click, then Open.
- Port 22022 is in use. Another copy of Termfold is running. Quit it from the menu bar.
- Nothing happens after closing the window. The server keeps running. Use the menu bar icon.
The iPhone app
- No Face ID or fingerprint. Check Require unlock to open a terminal in Settings. A phone without a passcode is not locked. iPhone Duo uses the passcode.
- A Mac disappeared after Quit everywhere. This is expected. Pair it again.
Still stuck
Write to neotepcom@gmail.com. Say what the phone shows, and include the last lines of Activity from the Mac.