Only after the user has installed SMS2VPS on the Android phone from which text messages are forwarded, can Termux and OpenSSH be used on the receiving Android device.
The Termux application is available for download from the Google Play Store, the F-Droid website. Once installed, open the Termux app to begin the setup process.
After opening Termux, enter the following commands one by one in the command line:
pkg update
pkg install openssh
sshd
passwd
ifconfig
whoami
ls -la ~/storage/
Configure the receiving device on the SMS2VPS app's VPS Settings page as follows:
ifconfig.
whoami.
.txt files should be saved (for example /storage/emulated/0/Download).
passwd.
8022 (Termux default), or change it if you use a custom port.
To temporarily change the port to 2222, run the following commands:
pkill sshd
sshd -p 2222
💡 Tip: Make sure both devices are connected to the same network for the SSH connection to work properly.