Operating System - Linux
1827452 Members
3822 Online
109965 Solutions
New Discussion

Re: unable to do telnet or rlogin

 
prassath
Occasional Advisor

unable to do telnet or rlogin

hi all,

i am unable to connect to the unixmachine( HP UX 11.31_ic135) , but from that machine iam able to connect to the other machine.

I tried insf -e also , i tried nfs.server,nfs.client stop and start.

error will be for rlogin is
rcmd_af: connect:hostname:connection refused

error while i do telent

could not open a connection to a hostname port23: connection failed
10 REPLIES 10
Muthukumar_5
Honored Contributor

Re: unable to do telnet or rlogin

Is telnet service running on hp-ux machine?

From HP-UX Machine:

1) Check /etc/inetd.conf file shell entry in that.

shell stream tcp nowait root /usr/lbin/remshd remshd
kshell stream tcp nowait root /usr/lbin/remshd remshd -K

has to be there to get r* commands execution

2) For telnet problem:

Check /etc/inetd.conf file for,

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

# netstat -na | grep -E '23.*LISTEN'

to has LISTEN status.

Try this!

--
Muthu
Easy to suggest when don't know about the problem!
prassath
Occasional Advisor

Re: unable to do telnet or rlogin

i have tried in etc/inetd.conf and it was commented and i removed the coment , but still it is not working,
i tried rlogin localhost, it says connestion failed, but from that box, ican able to rlogin .
Muthukumar_5
Honored Contributor

Re: unable to do telnet or rlogin

i have tried in etc/inetd.conf and it was commented and i removed the coment , but still it is not working,
>>>>>>

After that do as,

# inetd -c

inetd has to be reconfigured.

i tried rlogin localhost, it says connestion failed, but from that box, ican able to rlogin .

>>>

If it is not working after that check /etc/services file for,

exec 512/tcp # remote execution, passwd required
login 513/tcp # remote login
shell 514/tcp cmd # remote command, no passwd used

contents.

It will surely work.

--
Muthu
Easy to suggest when don't know about the problem!
prassath
Occasional Advisor

Re: unable to do telnet or rlogin

thanks for the reply

i tried inetd -c , there was no further display it returned to the prompt

I had check etc/servives following exec 512/tcp login 513/tcp shell 514/tcp is there
it will be greatful if u can help resolving the issue
Bill Thorsteinson
Honored Contributor

Re: unable to do telnet or rlogin

After changing the inetd.conf you need to
send inetd a HUP signal.
Usually 'killall -HUP inetd' will do the
trick.
Check telnetd is listing with
'netstat -lnt | grep 23', if not you can't
connect.
Also check /etc/hosts.allow and
/etc/hosts.deny.

Better yet, abandon telent, rlogin, and, rsh.
Use ssh instead, it is much more secure.
By default most distributions disable
telnet, rlogin, rsh, et al for a good reason.
Jean-Yves Picard
Trusted Contributor

Re: unable to do telnet or rlogin

Hello,

have you change disable = yes
to disable = no
in /etc/xinetd.d/rlogin ?

(maybe kill -HUP on inetd as instructed above)

Jean-Yves Picard

Linux is not unix, some old trick don't work.
prassath
Occasional Advisor

Re: unable to do telnet or rlogin

may be problem with installation or the setting
Muthukumar_5
Honored Contributor

Re: unable to do telnet or rlogin

Is there anything in /etc/pam.conf to deny login. Check /var/adm/inetd.sec file for telnet and rlogin related strings.

--
Muthu
Easy to suggest when don't know about the problem!
Jeroen Peereboom
Honored Contributor

Re: unable to do telnet or rlogin

Can you ssh to the HPUX server?
I'm not sure of Hp-UX's policy, but telnet may be off by default because it is not secure enough (cleartext passwords over the network).

You may also try telnet from HP-UX server to itself as a test.
Check /etc/hosts.allow / deny.
Any messages in /var/adm/syslog/syslog.log?

JP.
prassath
Occasional Advisor

Re: unable to do telnet or rlogin

there is no directory called etc/hosts.allow
, now there is a turning point , i can able to rlogin , but it say login incorrect, when i type 'root' and it displays connection to the host lost.