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>
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.
Where should I type this in?
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 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 ...
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:08:41 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,335,875 |