The Unable to write public key file error may occur when one connects to a host on an iOS / iPadOS device after restoring a backup or direct data transfer between two devices. The error will occur if the key that was used to connect to that host was not restored or transferred. Keys, passwords and passphrases are not included to / can't be restored from unsupported backup types, and they can't be transferred between two devices of different type.
After you restore an unsupported backup or transfer data between two devices of not the same type, the following fields will be empty: 'Password', 'Passphrase' and 'Private' (part of a key entry).
This problem can be fixed by readding the keys, passwords and passphrases or, if you've been a subscriber, by reloading your data from the servers of Termius. Reloading data means deleting all locally stored data and downloading the data from the cloud, i.e. data that was synchronized.
Important: If some of your data hasn't been synchronized, you'll lose it if you reload data. For example, it may happen if you've canceled your subscription and some changes made since then haven't been synced.
To reload the data, tap your e-mail displayed on the main app screen and then tap Reload data.
An encrypted backup made on a computer should let someone transfer all data to the same type of device, that is between two iPhones or iPads. If that backup is restored on a device of a different type, keys, passwords and passphrases won't be restored. A non-encrypted backup made on a computer doesn't include this data.
An iCloud backup made on a phone will let someone transfer all data to the same device. If that backup is restored on a different device, keys, passwords and passphrases won't be restored.
Was this article helpful?
Articles in this section
- Cannot import ed25519-sk or ecdsa-sk FIDO2 keys on Windows
- When trying to make a serial connection, I get a 'Permission denied' error
- I signed up with Apple on one device and but can't do it on another one. How to resolve it?
- I can't connect using an ed25519-sk or ecdsa-sk key
- I can't use the iOS app in the background
- I did not receive the email for approving login from a new IP address
- I can't enter characters (pipe, backslash, etc.) using the Option key
- I don't see the local terminal option in the desktop app
- I can't use Termius for Android in the background
- Terminal sharing: Known issues and limitations