I am using SimpleSSHD and doing scp
to transfer files from my computer to my Redmi phone.
My question is that after I have copied files to data/user/0/org.galexander.sshd/files
, how do I access them, such as with a File Manager?
I am using SimpleSSHD and doing scp
to transfer files from my computer to my Redmi phone.
My question is that after I have copied files to data/user/0/org.galexander.sshd/files
, how do I access them, such as with a File Manager?
Don't ever copy files out of /sdcard/
, for this task you should leave the files where they are. In order to copy files using SimpleSSHD, simply connect and copy: assuming you've left the default port of 2222
you can do this,
host=192.168.1.228
scp -r "scp://root@${host}:2222//sdcard/DCIM/OpenCamera" .
host=192.168.1.228
rsync --progress -ave 'ssh -p 2222' "root@${host}:/sdcard/DCIM/OpenCamera" .
On my phone the mountpoint of the external SD card is not /sdcard/
, but /storage/XXXX-XXXX/
.
e.g.:
HWVNS-H:/data/data/org.galexander.sshd/files $ ls -la /storage/C42F-10F5/
total 480
drwxrwx--- 16 root everybod 32768 Jan 1 1970 .
drwxr-xr-x 5 root root 100 Feb 25 08:56 ..
drwxrwx--- 5 root everybod 32768 Dec 22 2020 Android
drwxrwx--- 4 root everybod 32768 Nov 22 16:36 DCIM
...
/data/user/0/org.galexander.ssh
but to external shared storage/sdcard
. See similar question for Termux: https://android.stackexchange.com/a/218374/218526 – Irfan Latif Mar 12 '20 at 03:35