1824485 Members
3601 Online
109671 Solutions
New Discussion юеВ

ftp:connection refused

 
Ragni Singh
Super Advisor

ftp:connection refused

Hi All,
I'm trying to ftp from my desktop to a Linux server and it keeps telling me connection refused. I have a feeling that ftp is not turned on my LInux box. What files do I need to change and or how do I start ftp. Any help is greatly appreciated and points will be assigned.
7 REPLIES 7
Goran Koruga
Honored Contributor

Re: ftp:connection refused

Hi.

Check if anything is listening on port 21. FTP service is often started via inetd, so check if there's ftpd on the box and if there's relevant entry in inetd.conf (or xinetd config files).

Many FTP servers also run in stand-alone mode. Either way, check if any of the FTP servers is installed on the node (rpm -qa|grep -i ftp or dpkg -l '*ftp*' ...)

G.
Sergejs Svitnevs
Honored Contributor

Re: ftp:connection refused

In /etc/xinetd.d/ look for the file wu-ftpd. RedHat installs with the default "disable = yes" in this file. Setting "disable = no" and then "/etc/rc.d/init.d/xinetd restart" should enable ftpd service on a Linux box.

If You use TCP Wrappers to control access, add the following line to the /etc/hosts.allow file:
in.ftpd : ALL

Regards,
Sergejs
Ragni Singh
Super Advisor

Re: ftp:connection refused

It doesn't look like I have the wu-ftpd package installed on my server and I can't seem to find it on any of my cd either. Can someone direct me to where I can get teh rpm from. Any help is greatly appreciated.
Ragni Singh
Super Advisor

Re: ftp:connection refused

Hi, it seems to me that I don't have the wu-ftpd package installed on my system. I also looked at my cd and can't seem to see this particular package on any of the cd. Can someone direct me to where I can get this package. Any help is greatly appreciated.
Goran Koruga
Honored Contributor

Re: ftp:connection refused

Hi.

It definitely is on CDs, try ls *ftp*. Otherwise you can always get it from RedHat FTP mirrors.

lftp ftp.redhat.com:/pub/redhat/linux/7.3/en/os/i386/RedHat/RPMS> ls *ftp*

-rw-r--r-- 1 ftp ftp 261700 Apr 17 2002 wu-ftpd-2.6.2-5.i386.rpm

G.
Sergejs Svitnevs
Honored Contributor

Re: ftp:connection refused

check out the following link:
http://www.wu-ftpd.org/

or

Depending on your distribution, you can find lots of packages at:

http://rpmseek.com/rpm-pl/wu-ftpd.html?hl=com&cs=wu-ftpd:PN:0:0:0

Regards,
Sergejs
Ragni Singh
Super Advisor

Re: ftp:connection refused

Thanks for all the help guys. The correct answeer was on 8.0, there is no wu-ftpd. The package is vsftpd. All I had to do was run service vsftpd start and all works well now. Thanks for all the time and help.