LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2009, 03:09 PM   #1
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Rep: Reputation: 15
Struggling to make LFTP work


I've got a vendor who has an ftps site that I need to upload files to. I found lftp which seems to be the ideal solution. I used it to browse an anonymous CentOS ftp server and experimented with a few commands to try and build up some proficiency. However in trying to connect or run commands on my vendor's ftp server, I'm lost.

For example, I seem to have no problem connecting:

Quote:
[root@localhost ~]# lftp username@serveripaddress -d
But if I try list the directory or run any other commands I get the following:

Quote:
lftp username@serveripaddress:~> ls
---- Connecting to serveripaddress (serveripaddress) port 21
<--- 220 Microsoft FTP Service
---> FEAT
<--- 211-Extended features supported:
<--- LANG EN*
<--- UTF8
<--- AUTH TLS;TLS-C;SSL;TLS-P;
<--- PBSZ
<--- PROT C;P;
<--- CCC
<--- HOST
<--- SIZE
<--- MDTM
<--- REST STREAM
<--- 211 END
---> AUTH TLS
<--- 234 AUTH command ok. Expecting TLS Negotiation.
---> LANG
Certificate depth:

**snipped out certificate info**

<--- 200 Language is now English, UTF-8 encoding.
---> OPTS UTF8 ON
<--- 200 OPTS UTF8 command successful - UTF8 encoding now ON.
---> HOST serveripaddress
<--- 504 Server cannot accept argument.
---> USER username
<--- 331 Password required for username.
---> PASS XXXX
<--- 530 User cannot log in, home directory inaccessible.
---- Closing control socket
ls: Login failed: 530 User cannot log in, home directory inaccessible.
The debug info seems pretty obvious but I don't know enough about lftp to figure out a solution. How is that I'm authenticating with the server but when running a command, still being prompted for authentication? I'm still working my way through lftp tutorials but am a little puzzled.
 
Old 06-03-2009, 04:35 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

lftp waits for the first command before logging in, so you've not authenticated until the PASS command in the output you posted. Since the login fails every time, it's re-attempted when you try each command.

Looks like you either don't have a home directory on the remote side, or that the permissions are wrong.

Dave
 
Old 06-04-2009, 07:45 AM   #3
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks Dave. That helps. I may have figured it out the issue. The vendor sent me an xml file to import into a ftp client like Filezilla. The username field is something like "svs-ftp\username". So it looks like the svs-ftp subdirectory is my home directory. The challenge now is to try and access that using lftp. I still haven't figured that part out yet.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
make Xconfig doesn't work, make menuconfig does work Debian/KDE bucovaina78 Linux - Kernel 1 10-15-2008 01:26 PM
1st time installing redhat - Make and Make Install does not work runlikeanantelope Linux - Newbie 4 02-19-2007 03:58 PM
Trying to make mod_ssl work - virtualhosts make trouble Belize Linux - Software 0 02-26-2005 08:30 PM
How do I make a change to a current kernel? Would 'make oldconfig' work... jtp51 Slackware 11 11-01-2004 11:02 PM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:43 PM.

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