Operating System - HP-UX
1850582 Members
3032 Online
104054 Solutions
New Discussion

telnet through cross cable

 
kholikt
Super Advisor

telnet through cross cable

I use a cross cable to connect a laptop with one of the hpux server directly. I have set both netmask correctly.

But I can only do ftp from hpux to my notebook. I cannot do a ftp from my notebook to the hpux.

I cannot telnet to the hpux server either.

abc
5 REPLIES 5
Alexander M. Ermes
Honored Contributor

Re: telnet through cross cable

Hi there.
YOur ftp works, so the network connection is ok. Have the inetd.conf and the telnet daemon on the HP-UX machine checked. MAy the setup for telnet on your notebook needs a little attention too.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Steven Sim Kok Leong
Honored Contributor

Re: telnet through cross cable

Hi,

Check for any restrictions on your HP-UX server in
1) /var/adm/inetd.sec
2) tcpwrapper rules in tcpd.conf

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: telnet through cross cable

Hi,

>> 2) tcpwrapper rules in tcpd.conf

Configuration files to check should be hosts.allow and hosts.deny.

Hope this helps. Regards.

Steven Sim Kok Leong
K.Vijayaragavan.
Respected Contributor

Re: telnet through cross cable

What is the error message you are getting when you are doing ftp from your note book to PC?
-Vijay
"Let us fine tune our knowledge together"
Ron Kinner
Honored Contributor

Re: telnet through cross cable

netstat -a | grep ftp
(or
netstat -a |grep telnet depending on what you are trying to do. It's not clear from your post.) If listening should say:

tcp 0 0 *.ftp *.* LISTEN

If it's not listening then you will get a message back when you try to connect which says Connection Refused.

Look at /etc/inetd.conf
if it isn't listening. There should be 2 lines:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

telnet stream tcp nowait root /usr/lbin/telnetd telnetd


Add which ever is missing somewhere near the top of the fiel. Save it.

Now check
/etc/services and make sure it says:

ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)
telnet 23/tcp # Virtual Terminal Protocol

(You don't need the stuff after the #)

Now do
inetd -c
which should cause it to reread the inetd.conf file.

Now try netstat -a|grep ftp.

ftp also likes to have its own directory. Usually /home/ftp.

If you are connecting but not being asked to log on or not being accepted then it's a permission issue. But let us know if this part works before we go into that.

Ron