1833323 Members
2984 Online
110051 Solutions
New Discussion

Re: Telnet Problem

 
SOLVED
Go to solution
Angela Shepherd
Advisor

Telnet Problem

I'm receiveing the following error message when I try to telnet to another server.

telnet: Unable to connect to remote host: Connection refused

I recycled inetd and it is still not working. Any suggestions.
NO personal quote
5 REPLIES 5
Sean OB_1
Honored Contributor
Solution

Re: Telnet Problem

On the server you are trying to connect to, make sure that there is an entry in /etc/inetd.conf and also in /etc/services for telnet.

inetd.conf:
telnet stream tcp nowait root /usr/lbin/telnetd telnetd


services:
telnet 23/tcp # Virtual Terminal Protocol

Then verify that inetd is running.

ps -ef | grep inet

Patrick Wallek
Honored Contributor

Re: Telnet Problem

Also check /var/adm/inetd.sec and make sure that you don't have any restrictions for telnet coming into that machine.
Sridhar Bhaskarla
Honored Contributor

Re: Telnet Problem

Along with the above suggestion, make sure you have the file /usr/lbin/telnetd existing with the permissions r-xr--r-- owned by bin:bin.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Darrell Allen
Honored Contributor

Re: Telnet Problem

The error message is what you would get if telnet is not allowed by inetd.conf on the remote system. I'd expect "Connection closed by foreign host." if you were being denied by inetd.sec.

Can you rlogin into the remote server? ssh? If yes, do so and then telnet from the remote server to itself. See if you get the same message.

You can use "inetd -c" to cause inetd to re-initialize itself.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Angela Shepherd
Advisor

Re: Telnet Problem

Thank you very much. Please close this issue.
NO personal quote