LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-09-2022, 05:53 PM   #1
gugu
LQ Newbie
 
Registered: Oct 2015
Posts: 15

Rep: Reputation: Disabled
Problem with upload in FTP server using lftp client


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

Last edited by gugu; 11-09-2022 at 06:02 PM.
 
Old 11-09-2022, 06:04 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

sorry I don't use lftp, but suggest instead you try ncftpput from the ncftp package. Eg
Code:
ncftpput -u acg -p supersecret capannone.com.br wp-content/uploads/2022/11 CardapioDigitalNov2022_FinalGrande.docx
HTH,

EVo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to upload files with lftp validator456 Linux - Software 6 11-12-2021 04:04 AM
lftp upload problem within wireless network informan Linux - Software 4 01-29-2014 03:10 AM
lftp upload sycamorex Linux - Networking 11 05-25-2013 02:22 PM
FTP Upload Scripts Using lftp pricejm Linux - General 5 08-26-2012 03:32 PM
lftp to upload file pritisolanki Linux - Newbie 2 03-20-2009 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration