Termux is an option but using pmOS is far from silly.
Android and Termux have their limitations. Granted, I was running a full KDE session in Termux on a 2016 phone, but I saw Android OOM-kill random processes in Termux. You probably don't have a swap partition on your Android phone. Android apps are designed to be killed when in background, and Android avoids killing the app at the foreground, but Android doesn't know some processes running in Termux shouldn't be killed. This could happen if something on your server suddenly uses more RAM than anticipated.
On a regular Linux distro, you can have a swap file and/or teach the OOM to not kill some critically important services, like ssh for instance.
Considering that part of the point is being able to use end-of-life devices, it's doing this in Termux that would be silly, don't run an OS which isn't getting security patches.
Android and Termux have their limitations. Granted, I was running a full KDE session in Termux on a 2016 phone, but I saw Android OOM-kill random processes in Termux. You probably don't have a swap partition on your Android phone. Android apps are designed to be killed when in background, and Android avoids killing the app at the foreground, but Android doesn't know some processes running in Termux shouldn't be killed. This could happen if something on your server suddenly uses more RAM than anticipated.
On a regular Linux distro, you can have a swap file and/or teach the OOM to not kill some critically important services, like ssh for instance.