1833850 Members
1986 Online
110063 Solutions
New Discussion

FTP problem

 
SOLVED
Go to solution
diudiu_1
Advisor

FTP problem

I have a Hpux server,Named A.And there is another Hpux server Name B.
I can ftp and rlogin from A to B.
But I can't ftp or rlogin from B to A.
while it's error message:
ftp(B to A): 421 Service not available, remote server has closed connection.
rlogin(B to A):rcmd: Lost connection.
I(B)ping server A,It's no problem.
And I tried to use 'inetd -l' on server A.
Nothing appears.
How could I solve this problem ?

Thank you very much.


8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: FTP problem

It sounds like the services may be turned off on server A. Check /etc/inetd.conf and see if the lines for FTP and the R* commands are commented out. If they are then those services are not usable. If you need them, remove the '#' characters from the beginning of the appropriate lines. Then do an 'inetd -c' to have inetd re-read inetd.conf.
diudiu_1
Advisor

Re: FTP problem

Thanks, But I checked the '/etc/inetd.conf' again just now, and 'inetd -c'.
there is nothing happend the same.
But I can 'telnet' to the server A ,from windows system(My PC),and also Ftp works well from my PC to server A.

But only unix system are all failed to 'ftp' and 'rlogin' to sever A.

Tnank you.
Igor Sovin
Super Advisor

Re: FTP problem

Hi!

Try ftp -v Host A
and post the output here.
Denver Osborn
Honored Contributor

Re: FTP problem

Can you ftp rlogin from A to A? If not, then make sure there's a listener. Try to compare inetd.conf of host B and A to see what may have been missed.

-denver
diudiu_1
Advisor

Re: FTP problem

Hi, all.
I can 'ftp' and 'rlogin' from A to A.No problem.

And also use 'ftp -v A', the same error message appears.
Patrick Wallek
Honored Contributor
Solution

Re: FTP problem

Check for a /var/adm/inetd.sec file and see if that is restricting who can access your system.

You can specifically allow or deny certain hosts access to your machine via this file.
Igor Sovin
Super Advisor

Re: FTP problem

Check on both A and B if file /etc/hosts.allow exists. If so, you should configure it to allow access from B to A.
diudiu_1
Advisor

Re: FTP problem

Thank you very much.
I forget to edit file'inetd.sec'
It works well now!