LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-31-2004, 03:14 AM   #1
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Rep: Reputation: 30
ftp - connection refused


I'm trying to set up an FTP server, as per the directions here --> http://www.linuxquestions.org/questi...ticle&artid=17

I'm down to where I have to connect via "ftp localhost" but when I do that I get the error:

Code:
# ftp localhost
ftp: connect: Connection refused
What does this mean? and how do I resolve this issue?
 
Old 10-31-2004, 05:11 AM   #2
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
There is one more step you may need to do. su as root and open up an editor. Open the file /etc/inetd.conf

Check the file for a line that contains:

#ftp stream tcp nowait root /usr/sbin/tcpd proftpd

If you don't see it, then just type it in. (I use tabs between the words.) Make sure you change the path from /usr/sbin/tcpd to whatever is correct for your system.

Delete the # at the beginning of the line

If you made a change, then restart your inetd server by typing in the command:

kill -HUP 'cat /var/run/inetd.pid'

Don't worry, that command will find the inetd process and restart it using the kill command.

Hope that helps!
 
Old 10-31-2004, 05:16 AM   #3
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
Oh yeah, I forgot to mention this works on a Slackware system so YMMV a bit.

Your super server daemon (for lack of a better term) doesn't know what to do with the ftp request.

Cheers!
 
Old 10-31-2004, 01:50 PM   #4
aje
Member
 
Registered: Oct 2004
Location: Internet
Distribution: Slackware 10.1
Posts: 177

Original Poster
Rep: Reputation: 30
That file does not exist for me, should I create it?
 
Old 11-06-2004, 06:19 AM   #5
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
If it's not there, then it won't do any good to start it.

What does this command tell you?

cat /var/run/inetd.pid
 
  


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
connection refused on FTP jsheffie Suse/Novell 2 07-07-2005 01:35 PM
ftp: connect: Connection refused dn7 Linux - Software 1 09-01-2004 06:51 PM
ftp: connect : connection refused udayan Linux - Networking 4 05-14-2003 12:55 AM
Telnet/FTP Connection refused Rfriend@ucwv.edu Linux - Newbie 6 07-31-2001 01:06 PM
ftp connection refused charkym Linux - Networking 2 06-26-2001 04:29 PM


All times are GMT -5. The time now is 01:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration