Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

OK, enough hype. -- Larry Wall in the perl man page


computers / comp.mobile.android / Re: Can't connect FTP server to PC

SubjectAuthor
* Can't connect FTP server to PCFokke Nauta
+* Re: Can't connect FTP server to PCAndy Burns
|`* Re: Can't connect FTP server to PCFokke Nauta
| `* Re: Can't connect FTP server to PCAndy Burns
|  `- Re: Can't connect FTP server to PCFokke Nauta
`- Re: Can't connect FTP server to PCCarlos E.R.

1
Can't connect FTP server to PC

<l2m6orF3i3fU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49800&group=comp.mobile.android#49800

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Can't connect FTP server to PC
Date: Fri, 9 Feb 2024 09:40:59 +0100
Lines: 44
Message-ID: <l2m6orF3i3fU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 06EqnSICKZ4YzsWQ1IP9lwKgVXbkb7su1cbc5TDHLzD8qj7967
Cancel-Lock: sha1:6i2kv//fDDaH40hA66oZrM03jAs= sha256:9Bd97y/KEcISWPph7pRDjNYjhi702am3X2JYwF3WhWE=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
 by: Fokke Nauta - Fri, 9 Feb 2024 08:40 UTC

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

Re: Can't connect FTP server to PC

<l2m9l9F35ojU3@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49801&group=comp.mobile.android#49801

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect FTP server to PC
Date: Fri, 9 Feb 2024 09:30:17 +0000
Lines: 47
Message-ID: <l2m9l9F35ojU3@mid.individual.net>
References: <l2m6orF3i3fU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
X-Trace: individual.net VAfGPKSspn6sMJyVMeEgdwNBdwkb0mZusX1SVLKLCOfoeSeidh
Cancel-Lock: sha1:T0klFPaMYgKT9I2fubCA2foMAYg= sha256:P0U4qsrGEmiruQJnl1lH28sLnECSLgFFhEMtcPuSuN4=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <l2m6orF3i3fU1@mid.individual.net>
 by: Andy Burns - Fri, 9 Feb 2024 09:30 UTC

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.

Re: Can't connect FTP server to PC

<l2mjkaF5dkoU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49802&group=comp.mobile.android#49802

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect FTP server to PC
Date: Fri, 9 Feb 2024 13:20:26 +0100
Lines: 76
Message-ID: <l2mjkaF5dkoU2@mid.individual.net>
References: <l2m6orF3i3fU1@mid.individual.net>
<l2m9l9F35ojU3@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 5EBnsJoCYgBYh2FdyAhETAJtAszhGAAjfyJrnbKj5odQwpnRJZ
Cancel-Lock: sha1:XNb7Kul9FXUAOETqNOr2o+h92qY= sha256:oo9dl5faw6kWpJckd/llXkOI4tkSrdVex15dgftG4Yk=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
In-Reply-To: <l2m9l9F35ojU3@mid.individual.net>
 by: Fokke Nauta - Fri, 9 Feb 2024 12:20 UTC

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

Re: Can't connect FTP server to PC

<l2ml0bF4l2oU4@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49803&group=comp.mobile.android#49803

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect FTP server to PC
Date: Fri, 9 Feb 2024 12:43:54 +0000
Lines: 13
Message-ID: <l2ml0bF4l2oU4@mid.individual.net>
References: <l2m6orF3i3fU1@mid.individual.net>
<l2m9l9F35ojU3@mid.individual.net> <l2mjkaF5dkoU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 97ymWcPCFFSqBHbrBuXdzwRKz4cUNKgdD/ZiWrvBXQQzx5mEkm
Cancel-Lock: sha1:HFLcka56v69fCchl1ApKMgQNQJ8= sha256:lDSXsYIIqGj5utt57CaigUPcAHMthdFDLc9alTwtjW8=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <l2mjkaF5dkoU2@mid.individual.net>
 by: Andy Burns - Fri, 9 Feb 2024 12:43 UTC

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

Re: Can't connect FTP server to PC

<l2mqmnF6v6dU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49806&group=comp.mobile.android#49806

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.hispagatos.org!news.nntp4.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect FTP server to PC
Date: Fri, 9 Feb 2024 15:21:11 +0100
Lines: 20
Message-ID: <l2mqmnF6v6dU1@mid.individual.net>
References: <l2m6orF3i3fU1@mid.individual.net>
<l2m9l9F35ojU3@mid.individual.net> <l2mjkaF5dkoU2@mid.individual.net>
<l2ml0bF4l2oU4@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net l1rsQQcp2fQmSxO0d6jdfwGJg8VJeaQyiPoAcT3IeTYdQGoP1U
Cancel-Lock: sha1:Cb9YtgP5K/txucPmitsm/hkpkpI= sha256:+RJfxSJNQL13RQ/xX+xlycoUxSQxqsI6CRrgFnZbyA0=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
In-Reply-To: <l2ml0bF4l2oU4@mid.individual.net>
 by: Fokke Nauta - Fri, 9 Feb 2024 14:21 UTC

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

Re: Can't connect FTP server to PC

<vevj9kx2sn.ln2@Telcontar.valinor>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49814&group=comp.mobile.android#49814

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_li...@es.invalid (Carlos E.R.)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect FTP server to PC
Date: Sat, 10 Feb 2024 11:23:59 +0100
Lines: 68
Message-ID: <vevj9kx2sn.ln2@Telcontar.valinor>
References: <l2m6orF3i3fU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net vNZ0lQLh/nUhVGo3KDz2DQh7rhu+GQyxYpCU2O+wJOll9wcjDx
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:0VXCWv5N0EloZK9pNcq7xhA7tYo= sha256:LxTq0ysuiFO0nwM+IiCgSQkQAzU9pm45QfcD/yw4/Q4=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <l2m6orF3i3fU1@mid.individual.net>
 by: Carlos E.R. - Sat, 10 Feb 2024 10:23 UTC

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.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor