1834499 Members
2393 Online
110068 Solutions
New Discussion

why cant i ftp this box

 
SOLVED
Go to solution
thebeatlesguru
Regular Advisor

why cant i ftp this box

i have define ftp service in /etc/servicesftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)

and from another pc i can ping the box ,but when i ftp the box from that pc:
connected to 202.96.*.*
connection closed by remote host

whats up?


hihi
10 REPLIES 10
harry d brown jr
Honored Contributor

Re: why cant i ftp this box

What's with the asterisks??

What OS are you running??

What about inetd.conf?

What are the configs for /etc/ftpd??

live free or die
harry
Live Free or Die
thebeatlesguru
Regular Advisor

Re: why cant i ftp this box

the box is hp server ,hpunix 11.0
pc is win2000

inetd.conf:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

ftpd:
ftpuser: root


hihi
U.SivaKumar_2
Honored Contributor

Re: why cant i ftp this box

Hi,
What's the error in /var/adm/syslog/syslog.log ?

regards,
U.SivaKumar
Innovations are made when conventions are broken
Ravi_8
Honored Contributor

Re: why cant i ftp this box

Hi,

in /etc/inetd.conf , check if the line ftp is commented, if so uncomment it and do
#inetd -c
if this doesn't start the ftp the
#/usr/sbin/inetd
should solve your problem
never give up
thebeatlesguru
Regular Advisor

Re: why cant i ftp this box

as matter of a face ,i can ftp from a pc which ip is 10.0.*.*
but i cant ftp from a pc ip is 61.*.*.*

and the server ip is 202.*.*.*
hihi
harry d brown jr
Honored Contributor

Re: why cant i ftp this box

Can the user telnet from the PC to their account on the HPux server?

What is the output of

netstat -rnv

??

live free or die
harry
Live Free or Die
U.SivaKumar_2
Honored Contributor
Solution

Re: why cant i ftp this box

Hi,
Things to check.
edit /var/adm/inetd.sec , see any restrictions are put for your problematic network.

Also edit /etc/ftphosts , see any deny rules are put for your network. if any remove it.


regards,
U.SivaKumar
Innovations are made when conventions are broken
Jean-Luc Oudart
Honored Contributor

Re: why cant i ftp this box

Did you check inetd.sec
JL
fiat lux
echong
Regular Advisor

Re: why cant i ftp this box

You said you can ftp from machine in one subnet but not the other. Do you have a firewall between them? Check the setting.

Also check /etc/shells and make sure you are using a legal shell.
Allan Pincus
Frequent Advisor

Re: why cant i ftp this box

I had a similar problem. It seemed that when I attempted to start an ftp session, if the user's shell was /usr/bin/ksh it would not work, but when it was /usr/bin/sh it would. It did not matter to me which shell was used, so I left it as /usr/bin/sh.

Maybe that's the problem.

- Allan