LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 04:11 AM   #2
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
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, 04:16 AM   #3
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
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, 12: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, 05:19 AM   #5
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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