Receive SMS on Another Android Device

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.

Step 1: Install Termux

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.

Step 2: Configure OpenSSH in Termux

After opening Termux, enter the following commands one by one in the command line:

# Update package lists
pkg update
# Install OpenSSH program
pkg install openssh
# Start SSH daemon
sshd
# Set a password for SSH connection
passwd
# Get your Android phone's IP address (look for "inet" in the output)
ifconfig
# Check the username
whoami
# List available storage folders
ls -la ~/storage/

Step 3: Configure the Receiving Device in SMS2VPS

Configure the receiving device on the SMS2VPS app's VPS Settings page as follows:

  • IP address: Enter the IP address from ifconfig.
  • Username: Enter the username from whoami.
  • VPS storage path: Choose where the .txt files should be saved (for example /storage/emulated/0/Download).
  • Password: Enter the password you set with passwd.
  • Port: Use 8022 (Termux default), or change it if you use a custom port.

Step 4: Changing the Port (Optional)

To temporarily change the port to 2222, run the following commands:

# Stop the current SSH daemon
pkill sshd
# Start SSH daemon on port 2222
sshd -p 2222

💡 Tip: Make sure both devices are connected to the same network for the SSH connection to work properly.