Ooops. Rereading my post, I see a misleading error that might cause confusion.:shame:
then, after transferring (in my case, Unison, because it also checks the files during transfer):
cd /var/run/media/yourpcusername/path_to_files_on_pc/
where you can check to see if the files transferred without corruption:
that should be
cd /full_path_to_the_files_on_the_pc
Mine, above, included “/var/run/media” because I have a separate DATA partition that I only mount on demand when I log in, thus that partition gets mounted in “/var/run/media”.
I doubt your path will include that.
It is almost midnight here, now, so I am off to have nightmares about Linux problems. lol!
I will check back tomorrow to see how you made out.
… and Linux nightmares I did have, indeed, along with Android ones!
Seems I was not in top form when I wrote those instructions :shame: and the moment I put my head down on the pillow last night I realized another error I made in the routine. Please forgive me!
Before you copy the newly generated SSH key to the Android device, you need to
exit
from your SSH connection to the device (or use a 2nd terminal window not SSH’d to the device).
The following command to transfer the SSH key to the device needs to be run on the PC, not while you are in the Android’s CLI.
ssh-copy-id -i ~/.ssh/id_dsa.pub -p 2222 xxx.xxx.xxx.xxx
Gad, I am going to have to concentrate on not being so sloppy!!!
Gerry I have tried your method and while it works to connect to my Samsung J5 I do not see the directories I wanted to on my phone which is running Android 6.0.1. It shows what seems to be SDCard but some of the contents I know are on my card do not show up. Have you or anyone else seen problems like this please?
Stuart
First … which method and how, a few more details are needed.
Also, did you set the SD card as internal or external on the device?
Yes, I have seen that … a long time back, now, and I am looking for my notes about it, but I think I solved that problem by changing the card to internal memory. At the moment, though, I cannot be certain.
However, while I hunt for the info, some more details would help.