2

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?

4
  • Don't copy files to /data/user/0/org.galexander.ssh but to external shared storage /sdcard. See similar question for Termux: android.stackexchange.com/a/218374/218526 Mar 12, 2020 at 3:35
  • @dhvcc, are you ok with my edit of your question if so please roll back to that revision. It's more straight forward and will be better indexed. android.stackexchange.com/revisions/221967/3 Jan 16, 2021 at 20:15
  • @EvanCarroll hello Evan, I felt that your edit went beyond than fixing the question so I rolled back and made minor fixes. If OP reverts to your version of edit, I would be fine with that. :-)
    – Firelord
    Jan 16, 2021 at 20:20
  • @Firelord I know, I (respectfully) disagree with you. The op was clearly confused, having my answer chosen should greenlight me to clarify that. There is no reason to have a muddy question preserved on this site in perpetuity. We can do better for those searching for this, and for those that find it. Jan 17, 2021 at 2:08

2 Answers 2

1

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,

SCP File Transfer

host=192.168.1.228
scp -r "scp://root@${host}:2222//sdcard/DCIM/OpenCamera" .

RSYNC over SSH File Transfer

host=192.168.1.228
rsync --progress -ave 'ssh -p 2222' "root@${host}:/sdcard/DCIM/OpenCamera" .
0

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
...
3
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Mar 24 at 10:05
  • That looks like a path to an external SD card, not the internal storage.
    – Andrew T.
    Mar 24 at 13:04
  • yes, i was talking about my external SD card path. edited above. My phone's android mounts my external SD card to above specified path. i thought /sdcard always means external SD card?
    – WolF
    Mar 25 at 11:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .