Hi everybody,
I have a problem using lftp client to upload a file to a server. I am 100% newby on ftp (first time I actually try to do something with it) and I probably miss something basic.
I followed
this basic guide to install lftp client and realize basic access to a server.
My problem is that when I use the put command to upload a file it gives Access failed: 404 error. However, the file it is shown by !ls command in the current local folder.
I have find
this discussion with a similar problem (the opposite, it gives the error trying to download a file that was detected by ls) but I do not understand the discussion… Again, I am a newby.
Here the code I used.
Code:
guido@guido-debian:~$ lftp -u agc http://capannone.com.br
Password:
cd ok, cwd=/
lftp agc@capannone.com.br:/> cd /wp-content/uploads/2022/11
cd: received redirection to `http://agc@capannone.com.br/wp-content/uploads/2022/11/'
Password:
cd ok, cwd=/wp-content/uploads/2022/11
lftp agc@capannone.com.br:/wp-content/uploads/2022/11> ls
drwxr-xr-x -- ..
lftp agc@capannone.com.br:/wp-content/uploads/2022/11> !ls -l
total 256
-rwxrwxrwx 1 guido guido 47972 Nov 9 16:43 CardapioDigitalNov2022_FinalGrande.docx
-rw-r--r-- 1 guido guido 123856 Nov 9 19:26 CardapioDigitalNov2022FinalGrande.pdf
drwxr-xr-x 2 guido guido 4096 Oct 28 16:48 Desktop
drwxr-xr-x 2 guido guido 4096 Nov 5 12:27 Documents
drwxr-xr-x 2 guido guido 4096 Nov 5 12:47 Downloads
drwx------ 5 guido guido 4096 Nov 9 20:29 Dropbox
drwxr-xr-x 2 guido guido 4096 Mar 26 2020 Music
drwxr-xr-x 2 guido guido 4096 May 6 2021 Pictures
drwxr-xr-x 2 guido guido 4096 Nov 5 18:06 prova
-rwxr-xr-x 1 guido guido 143 Nov 5 20:24 ProvaCPULimit
drwxr-xr-x 2 guido guido 4096 Mar 26 2020 Public
drwxr-xr-x 2 guido guido 4096 Apr 29 2021 Recordings
drwxr-xr-x 7 root root 4096 May 7 2021 SharedIES
drwx------ 5 guido guido 4096 Oct 28 16:44 snap
drwxr-xr-x 2 guido guido 4096 Nov 5 12:34 Temp
drwxr-xr-x 2 guido guido 4096 Mar 26 2020 Templates
-rw-r--r-- 1 root root 23183 Feb 17 2022 usr.lib.snapd.snap-confine.real
drwxr-xr-x 2 guido guido 4096 May 6 2021 Videos
lftp agc@capannone.com.br:/wp-content/uploads/2022/11> put -a CardapioDigitalNov2022_FinalGrande.docx
put: Access failed: 404 Not Found (CardapioDigitalNov2022_FinalGrande.docx)
lftp agc@capannone.com.br:/wp-content/uploads/2022/11> put CardapioDigitalNov2022_FinalGrande.docx
put: Access failed: 404 Not Found (CardapioDigitalNov2022_FinalGrande.docx)
lftp agc@capannone.com.br:/wp-content/uploads/2022/11>
My system is Debian Buster.
Thanks in advance for your help