Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't connect FTP server to PC

28 views
Skip to first unread message

Fokke Nauta

unread,
Feb 9, 2024, 3:41:03 AM2/9/24
to
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

Andy Burns

unread,
Feb 9, 2024, 4:30:21 AM2/9/24
to
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.

Fokke Nauta

unread,
Feb 9, 2024, 7:20:29 AM2/9/24
to
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

Andy Burns

unread,
Feb 9, 2024, 7:43:59 AM2/9/24
to
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 ...

Fokke Nauta

unread,
Feb 9, 2024, 9:21:15 AM2/9/24
to
I just downloaded it on my pc and will copy it to the phone. And install it.
I'm curious.

Fokke

Carlos E.R.

unread,
Feb 10, 2024, 5:28:01 AM2/10/24
to
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.

0 new messages