Fokke Nauta wrote:
> Hi all,
>
> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones
> I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP
> client, Cute Ftp 9.3. With this client I can make a connection with the
> A53 phone, after starting up the SSH server. Very easy!
> However, with the S10 phone it won't work. The same SSH server, a
> different user name and password. If I try to make a connection, there
> is an error.
> I wrote it in usenet and got a lot of answers.
> Thanks you all very much.
>
> Now I'm almost there!
There are differences in both clients and servers about the various
"FTP-like" protocols, might be worth a quick brush-up?
<
https://integrate.io/blog/the-complete-guide-to-ftp-ftps-sftp-and-scp>
> On the S10 phone I removed the SSH server and installed a FTP server.
> And this works, apart from the fact that there is a problem with the
> directory where the photo's are.
>
> I installed Total Commander File Explorer on the phone and found out
> where the photo's are:
>
> /storage/emulated/0/DCIM/Camera
>
> I programmed this in my FTP client on the PC, but it comes with an error:
>
> STATUS:> [07/02/2024 16:45:47] This site supports LANG.
> COMMAND:> [07/02/2024 16:45:47] OPTS UTF8 on
> [07/02/2024 16:45:47] 200 Command OPTS okay.
> STATUS:> [07/02/2024 16:45:47] This site can resume broken downloads.
> COMMAND:> [07/02/2024 16:45:47] MODE Z
> [07/02/2024 16:45:47] 200 Command MODE okay.
> COMMAND:> [07/02/2024 16:45:47] REST 0
> [07/02/2024 16:45:47] 350 Restarting at 0. Send STORE or
> RETRIEVE to initiate transfer.
> COMMAND:> [07/02/2024 16:45:47] CWD /storage/emulated/0/DCIM/Camera
> [07/02/2024 16:45:47] 550 No such directory.
> ERROR:> [07/02/2024 16:45:47] Requested action not taken (e.g.,
> file or directory not found, no access).
Are you still "in" the FTP client at that point? Still connected to the
server? Can you either enter FTP commands manually or use the GUI to
explore the phone's file system?
Try the following ...
PWD
to see which folder you're in on the phone
CWD /
to change into the root folder
LS
to list the content of the current folder
if you see "storage" as a folder, move down one at a time with
CD storage (then emulated, then 0, then DCIM etc)
note that folder/filenames are case sensitive.