Feuerfest

Just the private blog of a Linux sysadmin

Configuring Termux after a ROM-Update

Just a reminder for myself..

I recently updated the LineageOS on my mobile and hence had to revert to the official Stock ROM first. Due to this I, of course, also had to reinstall all apps.

These are the steps I do to configure Termux (Github, F-Droid) on my mobile.

  1. After install pkg update followed by pkg upgrade
    • Just pkg upgrade is normally enough as it includes executing pkg update
  2. Allow Termux to access the internal shared storage, so it can read my private SSH-keys: termux-setup-storage
    • Then either provide that path to the keyfile in the .ssh/config like this: /storage/emulated/0/<folder on storage>
    • Or copy the private keyfile to ~/.ssh/, then you are able to revoke the storage permissions again
      • We can't set permissions on the shared storage EVERY app will be able to read our private key..
  3. Install correct SSH package and agent: pkg install openssh (openssh contains the ssh-agent)
    • Create ~/.ssh/config and test it
  4. Test SSH-Connections to various servers
  5. Install various tools
    • pkg install dnsutils openssl-tool nmap traceroute
Share on