1846637 Members
1376 Online
110256 Solutions
New Discussion

FTP problems

 
Mike_17
New Member

FTP problems

I am having problems connecting to our ftp server. I am getting connection refused. Any hints as to why, everything looks fine....
6 REPLIES 6
Mark Mitchell
Trusted Contributor

Re: FTP problems

Check to see if you need a logon id to get access or if not, look to see if the system uses an ftp.allow file,
Krishna Prasad
Trusted Contributor

Re: FTP problems

Is the ftp service configured to start via inetd?

Are you using anyonomous ftp? restricted ftp?

It could be many things...
Positive Results requires Positive Thinking
Helen French
Honored Contributor

Re: FTP problems

Mike_21
Frequent Advisor

Re: FTP problems

I did a #inetd -c to reconfigure the internet daemon, everything is working but look have a strange entry in the syslog.log.

Feb 26 14:14:44 inetd[705]: Rereading configuration

Feb 26 14:14:47 inetd[705]: registrar/tcp: Unknown service

Feb 26 14:14:47 inetd[705]: Configuration complete
Mark Greene_1
Honored Contributor

Re: FTP problems

are you going through a firewall? if so, make sure that ports 20 and 21 are open on the firewall.

HTH
mark
the future will be a lot like now, only later
Ron Kinner
Honored Contributor

Re: FTP problems

Look at
netstat -a |grep ftp
on the FTP server. Is it listening?

tcp 0 0 *.ftp *.* LISTEN

If not then you have to look in /etc/inetd.conf

you need
ftp stream tcp nowait root /usr/lbin/ftpd ftpd
at a minimum.

Then in /etc/services you need
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)

Obviously you also need a file called /usr/lbin/ftpd.
-r-xr--r-- 1 bin bin 151552 May 5 2001 /usr/lbin/ftpd*

then
inet -c

Now do netstat -a |grep ftp again and see if you are listening.


Ron