1

I can scp files from my Linux server to Termux directory on my Android smartphone but Termux directory is not accessible through file explorer. What exactly should be the destination path for scp so that it places the file in the storage, say in the Download directory which is accessible through the file explorer.

1

By design Android won't allow any other app to access Termux's data directory: /data/data/com.termux/files/home. However you can scp directly to SD card after granting WRITE_EXTERNAL_STORAGE permission.

As referenced in Termux wiki:

It is necessary to grant storage permission for Termux on Android 6 and higher. Use 'Settings>Apps>Termux>Permissions>Storage' and set to true.

Now to copy files to Download directory:

~$ scp <file_name> <phone_IP>:/sdcard/Download/

RELATED: How to run SSH/SFTP server for multiple user logins with password authentication on Android?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.