Operating System - HP-UX
1820879 Members
5127 Online
109628 Solutions
New Discussion юеВ

FTP: Connection closed by remote host.

 
Yan Berube_1
Advisor

FTP: Connection closed by remote host.

Hi all,

If I try to ftp my hp-ux server ( 11.11 ) from any other hp-ux hosts, it's working fine, but if I try to ftp it from wintel hosts, i always get connection closed by remote host ( same if I'm using hosts or ip. And msg in syslog.log is not giving me more information ( ie.: Ftp connection closed. ). Is someone able to help me, plz ?

inetd.conf :

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l -u 000

No inetd.sec in /var/adm.

I already try to do inetd -c and inetd -k.

Telnet is working fine...

I don't know where to look now, can you help me, plz ?

9 REPLIES 9
Dwyane Everts_1
Honored Contributor

Re: FTP: Connection closed by remote host.

Yan,

Make sure your wintel machines have IIS installed, and ftp configured.

Dwyane
Yan Berube_1
Advisor

Re: FTP: Connection closed by remote host.

Hi,

I'm not trying to ftp a wintel ftp server, but trying to ftp an hp-ux ftp server from a wintel wks.

Thanks !

Darrel Louis
Honored Contributor

Re: FTP: Connection closed by remote host.

Hi,

Are you making use of ftphosts (/etc/ftpd)?
Are you using IPFILTER?
What does your logfile say?

/var/adm/syslog/syslog.log
/var/adm/syslog/ftpd.log
/var/adm/syslog/xfer.log

Darrel
Ivan Ferreira
Honored Contributor

Re: FTP: Connection closed by remote host.

Do you have a long delay when connecting to the host? Try adding the client IP to the /etc/hosts table.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Yan Berube_1
Advisor

Re: FTP: Connection closed by remote host.

Here is the content of syslog.log:

Jan 17 06:28:17 catia20 ftpd[3440]: FTP session closed
Jan 17 06:28:30 catia20 ftpd[3371]: FTP session closed
Jan 17 06:31:23 catia20 ftpd[3446]: FTP session closed
Yan Berube_1
Advisor

Re: FTP: Connection closed by remote host.

Hi Darrel,

I didn't used ftphosts file in /etc/ftpd.

Hi Ivan,

Seems to work now, if I add hostname in /etc/hosts. But why, i need to do that ? It was working fine few days ago without this entry. Need to find where the problem come from, don't want to add all wintel hosts in /etc/hosts.

thanks !
TwoProc
Honored Contributor

Re: FTP: Connection closed by remote host.

Look in the syslogs on the Unix Server and see if it says that the connection was blocked. It may refer you to the rule as to why it was.
We are the people our parents warned us about --Jimmy Buffett
Yan Berube_1
Advisor

Re: FTP: Connection closed by remote host.

My problem seems to be related to a DNS issues. Waiting answer from DNS team, before closing down this ticket.

Thanks all for your help.
Ivan Ferreira
Honored Contributor

Re: FTP: Connection closed by remote host.

Normally, name resolution should be consistent for your services to work smoothly. If you have done some modifications to the DNS configuration of your server, or the /etc/nsswitch.conf file, you will see this behaviour.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?