Operating System - HP-UX
1752808 Members
6070 Online
108789 Solutions
New Discussion юеВ

Re: ftp: connect: Connection refused

 
Khashru
Valued Contributor

Re: ftp: connect: Connection refused

# ftp localhost
Connected to localhost.towerlife.com.au.
421 Service not available, remote server has closed connection
ftp>
Suraj K Sankari
Honored Contributor

Re: ftp: connect: Connection refused

Hi,

please give the output of
grep ftp /etc/inetd.conf
and
grep ftp /var/adm/inetd.sec

Suraj
Khashru
Valued Contributor

Re: ftp: connect: Connection refused

# grep ftp /etc/inetd.conf
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
# Before uncommenting the "tftp" entry below, please make sure
# that you have a "tftp" user in /etc/passwd. If you don't
# have one, please consult the tftpd(1M) manual entry for
tftp dgram udp wait root /usr/lbin/tftpd tftpd\
# grep ftp /var/adm/inetd.sec
grep: can't open /var/adm/inetd.sec
Jeeshan
Honored Contributor

Re: ftp: connect: Connection refused

ahsanulj@gmail.com
a warrior never quits
Steven Schweda
Honored Contributor

Re: ftp: connect: Connection refused

> Sone was telliong by defauly hpux 11.31
> does not have ftp istalled.

If you spend enough time here, someone will
probably tell you almost anything.

> /usr/lbin/ftpd not found

If you decide that that's important:

http://docs.hp.com/en/5991-6460/apcs02.html
http://docs.hp.com/en/5992-4165/apds02.html

Everything I have found suggests that
HP FTP Server HPUX-FTPServer
is "installed or updated by default". You
seem to be missing some or all of it.

> [...] i got a new hpux box with 11.31 [...]

Who installed the OS? Perhaps _you_ should
do it.
Jeeshan
Honored Contributor

Re: ftp: connect: Connection refused

Khashru vai

you can check this doc

http://docs.hp.com/en/5992-4607/ch05s02.html
a warrior never quits
Suraj K Sankari
Honored Contributor

Re: ftp: connect: Connection refused

Hi,

Edit this line
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
into
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -a -l

then restart the net
inet -c

Suraj
Suraj K Sankari
Honored Contributor

Re: ftp: connect: Connection refused

Hi,

Edit this line in /etc/inetd.conf
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
into
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -a -l

then restart the net
inetd -c

Then try ftp again

Suraj
Dennis Handly
Acclaimed Contributor

Re: ftp: connect: Connection refused

>Steven: Everything I have found suggests that HPUX-FTPServer

Yes, this product contains ftpd:
HPUX-FTPServer.FTP.FTP-RUN: /usr/lbin/ftpd

For 11.23 it was:
InternetSrvcs.INETSVCS2-RUN: /usr/lbin/ftpd
Steven Schweda
Honored Contributor

Re: ftp: connect: Connection refused

> Edit this line in /etc/inetd.conf

> you can check this doc

Let's take a survey. How many people think
that this really doesn't matter:

/usr/lbin/ftpd not found

and that tweaking some configuration file
will actually help?


Buy a clue somewhere.


(Of course, I'd also expect some informative
complaints to appear in the system log file,
and we haven't been shown anything from
there.)