LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-09-2015, 10:51 AM   #1
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Rep: Reputation: Disabled
FTP Errors (gtp, gftp, filezilla)


- Sorry. Title supposed to read: FTP Errors (ftp, gftp, filezilla)

Hi everyone,

I'm having a problem with FTP that I've never had before. Where to start...

FTP (CLI). I can connect fine (ftp domain), but ls/dir pulls up nothing. It just sits on the cli without returning results.

gftp. The same. It connects to my website host, but doesn't return a directory listing.

Filezilla. The same for a while. I set the transfer mode to passive exclusively and finally got a directory listing. But transferring a file produces the same effect as using the command line and trying to get a directory listing.

Some times filezilla, after trying to connect, shows nothing in the "communication" window. The one that tells you what it's up to, like checking userid and password and connecting to a specific IP, etc. It's just a blank white window.

I've also disabled selinux in /etc/selinux.config

I'm stumped. I simply can't update my website with ftp. The hosting company has made suggestions such as changing from passive to active transfer, checking my firewall, but none of this helps.

Hopefully one of you has solved this type of problem before.

Last edited by wavelength72; 06-09-2015 at 10:52 AM. Reason: Title typo
 
Old 06-09-2015, 11:52 AM   #2
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
First question is there a firewall in place? Does dropping the firewall correct the issue? It is one of those more obscure issues but the file transfer function of FTP is on TCP Port 21. However, especially on some of the older versions the communications will cross port 20. I forget if it is TCP or UDP, check for both if this does show a positive on the firewall test.
 
Old 06-09-2015, 11:54 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Your FTP hosting has some special settings you are not enabling. If it has then post it here. Also try with 'lftp' program.
 
Old 06-09-2015, 12:01 PM   #4
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
OK. I've requested the exact settings for my account and any special settings their server might have. Will troubleshoot the firewall tomorrow, but I generally thought it was turned off when I set it to "Disabled" in /etc/selinux/config.

Also installed lftp and will try it.

Report back tomorrow. Thanks.
 
Old 06-12-2015, 07:21 AM   #5
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
Angry No such luck...

Hi, sorry it took a little longer to get back to this.

I installed lftp and encountered the same problem as I did with the other ftp clients (I changed the domain, userid, and psswd in the following):

Quote:
lftp ftp.domain.com:~> ls
ls: Login failed: 530 Login authentication failed
lftp ftp.domain.com:~> login ID PASS
lftp user@ftp.domain.com:~> ls
Interrupt
lftp user@ftp.domain.com:/> dir
Interrupt
lftp user@ftp.domain.com:/> exit
So, after logging in and requesting a directory listing, the app hung. (That's right before I interrupted the process manually...where you see the word "Interrupt".)

According the the people that host my site, I have all the correct settings in my ftp clients (sent them a screenshot to be sure).

I didn't have this problem on Ubuntu 14.04, so I'm assuming that it's Fedora. I've manually disabled selinux (but if port 21 and 20 were blocked, I probably wouldn't be able to get as far as successfully logging in.)

This is beyond my depth of knowledge, but I've never experienced in before on any previous Linux OS, including Fedora 18/19. I also can't find any body else posting about it who isn't running a private ftp server.

I'd really like to update my site if you can think of anyway to resolve this. One last thing. I've also signed up to other hosts and tested their servers. Same thing. I also replaced the wifi router with one I own so I can log into it... these solutions make no difference. Either there is no directory listing, or the client hangs on transmission...

Also, filezilla produces no graphical output during connection attempts. (Is this weird or what?)
 
Old 06-12-2015, 07:44 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
ftp is kinda' deprecated. are you able to use scp/sftp ?
 
Old 06-12-2015, 08:29 AM   #7
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'd rather stick with something simple.

Hey, your signature is kinda funny.
 
Old 06-13-2015, 06:51 AM   #8
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
anyone?
 
Old 06-13-2015, 07:22 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
sftp would be simpler than deprecated ftp (i am assuming you can log in remotely via ssh).
 
Old 06-13-2015, 07:32 AM   #10
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
I admit, with geek nobiness and embarrassment, that I don't really know how to ssh.

I don't think my hosting company supports secure FTP as it's a free account. I'd like to change to a paid account, but that won't solve my immediate problem, because I've tried ftp on three different hosting companies already.

I support I should look into ssh and then report back here. (They probably don't support that either.)

Personally, I've never liked plain-text ftp, but I do use a VPN.
 
Old 06-13-2015, 08:26 AM   #11
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Secure ftp is ftps and not sftp (SSH FTP). Secure ftp is supported by lftp.

Quote:
ls: Login failed: 530 Login authentication failed
Did you passed username and corresponding password?

Code:
lftp -u user ftp.some.com
 
Old 06-14-2015, 09:31 AM   #12
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
Secure ftp is ftps and not sftp (SSH FTP). Secure ftp is supported by lftp.



Did you passed username and corresponding password?

Code:
lftp -u user ftp.some.com
Yes. Login was successful. Please read the original post again. The problem is getting a directory listing. This has only just started happening on Fedora 21.

** Thanks for the info about sftp and ftps. From a casual search on google, it appears there are few free hosts that offer either. (My site is not designed to make money, so I'm trying not to spend money on it.)
 
Old 06-14-2015, 10:10 AM   #13
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
I have finally traced this back to a problem with my VPN. I have just submitted a ticket to them for a resolution. "ls" works fine in ftp without my VPN, but hangs with it on.
 
Old 06-17-2015, 06:10 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,308

Rep: Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744
Re ssh; its effectively 3 tools in one, all using the same underlying libs:

1. ssh - secure ie encrypted remote terminal cxn
2. scp - secure remote copy (either direction)
3. sftp - secure ftp inside ssh (near enough)

Personally I use scp - much simpler cmd set than sftp.
Note also that unless your std FTP is in fact FTP+SSL (as described above), then its not secure ...
 
Old 06-21-2015, 05:02 AM   #15
wavelength72
LQ Newbie
 
Registered: Jun 2015
Distribution: F21
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'm really not sure how this was resolved. It just started working again...
 
  


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
Unable to FTP text files via Filezilla or gFTP, range of errors gladders Linux - Networking 1 12-02-2014 02:38 PM
Filezilla vs gFTP mlpa Slackware 21 09-02-2010 04:10 AM
Fedora 10 install via Windows XP filezilla ftp server; ftp Url error in kickstart O(V)eGA_l2el) Fedora 2 09-28-2009 09:40 AM
FTP with filezilla jus71n742 Linux - Newbie 4 06-20-2008 01:16 AM
FileZilla FTP to htdocs errors writ3r Linux - Newbie 2 07-02-2005 06:35 PM

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

All times are GMT -5. The time now is 12:42 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