LinuxQuestions.org
Help answer threads with 0 replies.
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 05-27-2002, 11:33 PM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
Ftp Connection closed by remote host


Hi,

Getting error when I try to connect from Windows with WS_FTP Pro to my linux box running RH7/wu_ftp: Connection closed by remote host

I was able to connect yesterday and have not made any changes that I am can think of.

I am however, able to ssh into a separate linux box and connect ftp to the troubled box.

I have checed /var/log/messages and it just keeps saying:
ftpd[7068]: FTP session closed

I am also able to connect to ftp via localhost from the command line.

I'm not running any thing in hosts.allow or deny or /etc/ftpaccess.

Any suggestion are greatly appreciated.

Thanks

Last edited by 360; 05-28-2002 at 01:33 PM.
 
Old 05-28-2002, 12:06 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
Takes a look in /etc/hosts.deny, too.

You may have a line in there that says "ALL: PARANOID". If this is there, comment it out. You don't need to reboot or restart services for a change here to take effect.

Regards
 
Old 05-28-2002, 12:17 AM   #3
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I don't have any entries in hosts.deny.
 
Old 05-28-2002, 03:13 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
also make sure that your username is not listed in /etc/ftpusers
 
Old 05-28-2002, 09:53 AM   #5
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
The users are not in ftpusers.

thanks
 
Old 05-28-2002, 10:54 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Have you tried stopping and restarting the services yet ?

I don't get when you said you can ftp to the troubled box from another linux box via ssh ? If you ssh into the box, that isn't ftp'ing to it..
 
Old 05-28-2002, 01:22 PM   #7
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
Have you tried stopping and restarting the services yet ?

I don't get when you said you can ftp to the troubled box from another linux box via ssh ? If you ssh into the box, that isn't ftp'ing to it..
Yes, I have restarted the entire server.

Also, to clarify... I ment to say that I ssh into a linux box from which I can ftp into the troubled box via the command line. But I can't ftp from my Widows PC.

Thanks.
 
Old 05-28-2002, 01:26 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
and you don't have anytype of firewall or restrictions on the windows pc ?? what if you try ftp'ing into the box from the command inside windows, does that work and have you possibly tried any other ftp clients ??
 
Old 05-28-2002, 01:42 PM   #9
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I disabled ipchains and iptables.

I tried to ftp form dos command line and get same error:
Connection closed by remote host.

I had a friend try form a different pc on a different network using a different ftp client and he gets the same error.

Thanks
 
Old 05-28-2002, 02:29 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
have you checked your ftp logs if setup if it specifies anything in there ? I am running out of ideas myself.
 
Old 05-28-2002, 03:10 PM   #11
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
Where, other than /var/log/messages, can I find ftp logs?

Thanks,
 
Old 05-28-2002, 04:20 PM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually in the /var/log directory. unsure of wu-ftp, but I know proftp keeps their log there. might poke around there or maybe a subdirectory of /var/log/
 
Old 05-28-2002, 04:47 PM   #13
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I don't see anything in the log dir.

Thanks
 
Old 05-28-2002, 05:05 PM   #14
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
usually its setup to log to /var/log/ftpd.log but check out this site on more of logging with wu-ftp: http://www.landfield.com/wu-ftpd/logging.html
 
Old 05-28-2002, 07:13 PM   #15
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Original Poster
Rep: Reputation: 15
I found a work-a-round...

I increased the time-out on my ftp client on my pc and got right in.

Navigation via ftp is fine.

However, my php contact form is very slow to print a confirmation message but that's another post I guess.

I'll keep troublshooting this and post the fix later.

Thanks.
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
ssh_exchange_identification: Connection closed by remote host piter23 Linux - Software 17 09-11-2013 09:59 AM
rndc: connection to remote host closed. james.farrow Fedora 2 06-16-2004 11:40 AM
ssh_exchange_identification: Connection closed by remote host liguorir Linux - Software 3 09-18-2003 11:42 AM
ssh_exchange_identification: Connection closed by remote host ctav01 Linux - Networking 1 08-22-2003 07:14 PM

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

All times are GMT -5. The time now is 09:11 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
Open Source Consulting | Domain Registration