TermBot can use your YubiKey directly as an OpenPGP security key and authenticate over SSH.
What you need
- Android phone
- A YubiKey (NFC or USB + OTG adapter)
- TermBot installed from F-Droid
- Your YubiKey SSH public key already added on the server in
Code: Select all
~/.ssh/authorized_keys
- Install F-Droid.
- Open F-Droid and install TermBot.
- Open TermBot.
- Go to: Settings -> Manage Pubkeys
- Tap the + button (top-right).
- Select: Add OpenPGP security key
- Tap your YubiKey (NFC) or plug it in via USB/OTG.
- Enter your YubiKey PIN when prompted.
Step 3: Create (or edit) the SSH host and use the YubiKey
- In TermBot, add a new host (or edit an existing one).
- Set:
- Host (IP or domain)
- Port (usually 22)
- Username (e.g. root, admin, etc.)
- In the authentication/key option, choose the YubiKey you added in Step 2.
- Save, then connect.
Server-side requirement (very important)
Your SSH public key from the YubiKey must exist on the server in:
Code: Select all
~/.ssh/authorized_keysIf you get this error, check:
- You are connecting with the correct username.
- The correct YubiKey public key is actually present in .
Code: Select all
authorized_keys - You selected the correct key in TermBot (if you have multiple keys/subkeys).
- and
Code: Select all
~/.sshpermissions are correct (see above).Code: Select all
authorized_keys
That’s it. Install F-Droid -> install TermBot -> add OpenPGP security key -> assign it to the host -> connect.
