1825768 Members
2027 Online
109687 Solutions
New Discussion

ftp & telnet problem

 
SOLVED
Go to solution
mjos
Super Advisor

ftp & telnet problem

Hi, I am unable to ftp & telnet to one of our hp-rp3440 server running B.11.11
I am using root account to ftp files from the server

cat /etc/inetd.conf |grep ftp
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l

# cat /etc/inetd.conf |grep telnet
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

# cat /etc/services |grep ftp
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)
tftp 69/udp # Trivial File Transfer Protocol
sftp 115/tcp # Simple File Transfer Protocol
bftp 152/tcp # Background File Transfer Protocol
ftp-ftam 8868/tcp # FTP->FTAM Gateway

# cat /etc/services |grep telnet
telnet 23/tcp # Virtual Terminal Protocol

# cat /etc/shells
/usr/bin/ksh
/bin/ksh
/usr/bin/sh
/bin/sh
/sbin/sh

unable to start the ftp & telnet services

# /usr/lbin/ftpd start
# ps -ef |grep ftpd
root 26384 25712 0 06:05:14 pts/2 0:00 grep ftpd



9 REPLIES 9
mjos
Super Advisor

Re: ftp & telnet problem

The error that I am getting is

> ftp: connect :Connection refused
Jeeshan
Honored Contributor

Re: ftp & telnet problem

can you ping that server?

if so restart your services with command

#inetd -c
a warrior never quits
Srikanth Arunachalam
Trusted Contributor

Re: ftp & telnet problem

Hi ,

Sometimes when we change FTP/telnet connection from passive to port there could be problems.

You may use the below link to check if the mode of transfer is passive or port.

http://www.wu-ftpd.org/HOWTO/telnet.testing.HOWTO

Alternateive, you may check the /etc/ftpaccess to check if there has been any restriction on access.

Thanks,
Srikanth
Yogesh M Puranik
Valued Contributor

Re: ftp & telnet problem


Hi mjos!!

That's great that you had gone through the certain necessary areas but i want to add few more areas to have a look.

1]Please check out wheather the source and destination servers are within the same subnet.

2]If they are in different subnet, you need to get the firewall access to be open from your security team for telnet(port 23) and ftp (20 &21)ports.

3] Then also, if ftp is not working,please check out the file /etc/ftpd/ftpusers, if the user is present inside that make it hash then try.For more details check "man ftpusers"


I thinks by following above procedure, you can resolve your issuse.If you are happy with my explanation.Please do assign the points.


Cheers!!!!

Rgds

-Yogesh



Steven Schweda
Honored Contributor
Solution

Re: ftp & telnet problem

> Hi, I am unable to ftp & telnet to one of
> our hp-rp3440 server running B.11.11
> I am using root account to ftp files from
> the server

On which system are you running the FTP or
Telnet client, and on which system are you
trying to run the FTP and Telnet servers?

> cat /etc/inetd.conf |grep ftp
> ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l

> # cat /etc/inetd.conf |grep telnet
> telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

Around here, that's:

dy # grep telnet /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

dy # grep ^ftp /etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

So, "tcp", not "tcp6".

dy # grep tcp /etc/protocols
tcp 6 TCP # transmission control protocol

Perhaps yours includes "tcp6", but mine does
not.

> # /usr/lbin/ftpd start

/usr/lbin/ftpd is a program, not a start-stop
script in /sbin/init.d, so that was doomed.

> # ps -ef |grep ftpd
> root 26384 25712 0 06:05:14 pts/2 0:00 grep ftpd

And that was normal, as it only runs on
demand.

Does
grep ftpd /var/adm/syslog/syslog.log
tell you anything?
mjos
Super Advisor

Re: ftp & telnet problem

I am seeing the error in syslog file

grep ftpd /var/adm/syslog/syslog.log


getpeername (/usr/lbin/ftpd): Socket opera
tion on non-socket
Steven Schweda
Honored Contributor

Re: ftp & telnet problem

As the results of a quick Google search for:
hp-ux ftpd "Socket operation on non-socket"
suggest (and a quick experiment confirms),
this complaint may be caused by your command:
/usr/lbin/ftpd start
mjos
Super Advisor

Re: ftp & telnet problem

Thanks Steve, It worked after changing tcp6 to tcp. So it was a protocol issue that was disabling th ftp transfers.
mjos
Super Advisor

Re: ftp & telnet problem

Solved