View Full Version : ftp problems.
aboyz
03-31-2004, 05:32 PM
Hi,
everytime i try to connect to the server using ftp. it says. connection refuses?
why is that? I can't use a 3rd party ftp client to connect to the server?
I mean the file manager works ok, but only can upload one file at a time which is time consumer. How do i allow ftp enable?
What ftp program do direct admin uses?
Please advise.
aboyz
03-31-2004, 05:37 PM
I did a port scan on the server and it show.
(The 1638 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop-3
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
143/tcp open imap
443/tcp open https
445/tcp filtered microsoft-ds
593/tcp filtered http-rpc-epmap
3141/tcp filtered vmodem
3306/tcp open mysql
4000/tcp filtered remoteanything
4444/tcp filtered krb524
6666/tcp filtered irc-serv
6667/tcp filtered irc
6668/tcp filtered irc
7000/tcp filtered afs3-fileserver
I guess proftpd is not enable??
How do i enabled it?? please advise..
thanks
ProWebUK
03-31-2004, 09:15 PM
Check your firewall isn't blocking port 21 and also proftpd is running
/etc/rc.d/init.d/proftpd status
Chris
aboyz
03-31-2004, 09:39 PM
No firewall and proftpd is running..
doorway-server-one# ./proftpd status
proftpd (pid 1308 ) is running...
ProWebUK
03-31-2004, 09:48 PM
What OS and:
netstat -nlp | grep :21
output?
Chris
aboyz
03-31-2004, 09:52 PM
using freebsd 4.9
aboyz
03-31-2004, 09:55 PM
Hi,
any reason why connection refuse??
please advise..
proftpd is enable....
I think its proftpd
want me to try to disable proftpd and just enable a regular ftp and see if that work??
ProWebUK
03-31-2004, 10:27 PM
any output when you run
netstat -nlp | grep :21
?
Chris
aboyz
03-31-2004, 10:40 PM
doorway-server-one# netstat -nlp | grep :21
netstat: option requires an argument -- p
usage: netstat [-AaLnSW] [-f protocol_family | -p protocol]
[-M core] [-N system]
netstat -i | -I interface [-abdnt] [-f address_family]
[-M core] [-N system]
netstat -w wait [-I interface] [-d] [-M core] [-N system]
netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core]
netstat -i | -I interface -s [-f protocol_family | -p protocol]
[-M core] [-N system]
netstat -m [-M core] [-N system]
netstat -r [-AanW] [-f address_family] [-M core] [-N system]
netstat -rs [-s] [-M core] [-N system]
netstat -g [-W] [-f address_family] [-M core] [-N system]
netstat -gs [-s] [-f address_family] [-M core] [-N system]
ProWebUK
03-31-2004, 10:50 PM
different to what I just tried it with...
try using
netstat -na | grep :21
Chris
aboyz
03-31-2004, 11:06 PM
nothing show up
doorway-server-one# netstat -na | grep :21
doorway-server-one#
nothing show up i guess
thanks
song
ProWebUK
03-31-2004, 11:15 PM
Well its running.... but its not listening for connections...
Have you tried to restart / stop/start proftpd?
/etc/rc.d/init.d/proftpd stop
/etc/rc.d/init.d/proftpd start
Failing that, is there anything in your log files?
Chris
aboyz
04-02-2004, 03:07 PM
Hi,
I did a proftpd stop and start.
doorway-server-one# ./proftpd stop
Shutting down proftpd: [ OK ]
doorway-server-one# ./proftpd start
Starting proftpd: [ OK ]
doorway-server-one#
checked the log, nothing strange.. but i'm getting the following errror, maybe this is what casuing it, but i doubt it.. Please help on how to get ftp up
doorway-server-one# - getaddrinfo 'doorway-server-one.com' error: No address associated with hostname
- error: unable to determine IP address of 'doorway-server-one.com'
- getaddrinfo 'doorway-server-one.com' error: No address associated with hostname
- error: unable to determine IP address of 'doorway-server-one.com'
ProWebUK
04-02-2004, 03:27 PM
Does your hostname resolve?
aboyz
04-02-2004, 05:47 PM
Yup..
my host is resolved...
but ftp still same problem..
I'm getting this message in my directadmin.. what does this mean..
Subject: The service 'proftpd' on server doorway-server-one.com is currently down Today at 17:22
This message has been automatically generated notifying you that the service proftpd is currently down.
nobaloney
04-03-2004, 08:25 AM
It means your ftp daemon (thats the program that supplies ftp services) isn't running.
First see if you've got it set up to run all the time or not; try the following command and let us know what you get:
# grep ServerType /etc/proftpd.conf
You should get a line that looks like this:
ServerType standalone
If it doesn't say "standalone" then your proftpd is misconfigured.
If it does, then try restarting proftpd and see if you get any errors.
How you do that is operating system dependent.
On Red Hat Linux use:
# service proftpd restart
Let us know any errors you get.
Jeff
aboyz
04-03-2004, 05:18 PM
this is what i got.
cp# grep ServerType /etc/proftpd.conf
ServerType standalone
did a proftpd stop
and proftpd start
no error..
please help..
thanks
aboyz
04-03-2004, 05:22 PM
Arg,
I find out the problems...
Its the hostname that needed a A record in my DNS. Becuase its not resolving. :) So Proftpd will take that in consideration.
So if anyone got problems ftping, please check your hostname make sure its resolved. Or just add in a CNAME or A record.
:)
thanks all
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.