• Can't connect FTP server to PC

    From Fokke Nauta@21:1/5 to All on Fri Feb 9 09:40:59 2024
    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, CuteFTP 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!

    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).

    What may be wrong?

    With regards,

    Fokke Nauta

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to All on Fri Feb 9 09:30:17 2024
    Rm9ra2UgTmF1dGEgd3JvdGU6DQo+IEhpIGFsbCwNCj4gDQo+IFdlIGhhdmUgdHdvIHNtYXJ0 cGhvbmVzLCBhIFNhbXN1bmcgUzEwIGFuZCBhIFNhbXN1bmcgQTUzLiBPbiBib3RoIHBob25l cyANCj4g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EQ0lNIGV0YykNCg0Kbm90ZSB0 aGF0IGZvbGRlci9maWxlbmFtZXMgYXJlIGNhc2Ugc2Vuc2l0aXZlLg0KDQo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fokke Nauta@21:1/5 to Andy Burns on Fri Feb 9 13:20:26 2024
    On 09/02/2024 10:30, Andy Burns wrote:
    Fokke Nauta wrote:


    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>

    Thanks, this is clear.

    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?

    Yes

    Still connected to the
    server?

    No, the connection was closed.

    Can you either enter FTP commands manually or use the GUI to
    explore the phone's file system?

    No.

    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

    Where should I type this in?

    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.


    On the phone I discovered that the images are in /storage/emulated/0/DCIM/Camera. This is what I entered in the FTP client.

    Fokke

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to Fokke Nauta on Fri Feb 9 12:43:54 2024
    Fokke Nauta wrote:

    Where should I type this in?

    If the connection has closed, you can't, unless you can convince client
    and/or server to keep the connection open?

    On the phone I discovered that the images are in /storage/emulated/0/DCIM/Camera. This is what I entered in the FTP client.

    I think it is likely android permissions not letting the server see the emulated storage, see how it goes with the github version ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fokke Nauta@21:1/5 to Andy Burns on Fri Feb 9 15:21:11 2024
    On 09/02/2024 13:43, Andy Burns wrote:
    Fokke Nauta wrote:

    Where should I type this in?

    If the connection has closed, you can't, unless you can convince client and/or server to keep the connection open?

    On the phone I discovered that the images are in
    /storage/emulated/0/DCIM/Camera. This is what I entered in the FTP
    client.

    I think it is likely android permissions not letting the server see the emulated storage, see how it goes with the github version ...


    I just downloaded it on my pc and will copy it to the phone. And install it. I'm curious.

    Fokke

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Fokke Nauta on Sat Feb 10 11:23:59 2024
    On 2024-02-09 09:40, 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, CuteFTP 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.

    Notice that you are installing an ssh server and connecting with an ftp
    client. You are asking to connect with different protocols.


    Notice that in Linux parlance, "sftp" refers in fact to SSH protocol
    used to transfer files, not to the FTP protocol.

    sftp — OpenSSH secure file transfer

    In the Linux world, running an ssh server to transfer files is often
    done out of the box. So, it would be interesting to do it in Android too.

    So, when you use a clever ftp client to connect to an ssh server to
    transfer files, you must make sure that you are telling the client to in
    fact use ssh, not ftp.




    Now I'm almost there!

    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).

    What may be wrong?

    With regards,

    Fokke Nauta

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)