1753718 Members
6081 Online
108799 Solutions
New Discussion юеВ

Re: Telnet Fails

 
Christopher_63
Occasional Contributor

Telnet Fails

Dear friends,

I try to telnet mu server Linux redhat As 3 from my Ms WinXp Pc, but i have the following error.
------------------------ -----------------------------------------
# telnet 192.168.1.6
Trying...
telnet: connect: A remote host refused an attempted connect operation.
----------------- ----------------------- -------------------------
Do you have any idea ?

Thank's a lot.

Best regards.
12 REPLIES 12
NiCK_76
Respected Contributor

Re: Telnet Fails

Hi Christopher ,

Do you ensure telnet service works? I suggest you
1/Check telnet service ,is it enabled?
cat /etc/xinetd.d/telnet ,parameter disable should "= no"
2/Check xinetd service ,is it running?
/etc/init.d/xinetd status
3/Check firewall, is it allow port 21?
You should stop iptables to have a try. Perform command "/etc/init.d/iptables stop".
4/Check singularity from /var/log/messages
5/Check opened port ,perform "netstat -nl |grep 21" ,is it exist?

NiCK
just for fun
Steven E. Protter
Exalted Contributor

Re: Telnet Fails

telnet is not enabled in a standard linux install. This is because the password authentication travels across the network in clear text.

Yep, anybody on the network can sniff your password.

Consdier using ssh instead of telnet. It is enabled in all current Red Hat Installations.

To enable telnet

cd /etc/xinetd.d

Find the entry that says(is named) telnet

vi it.

change disable=yes to disable=no

save the file

service xinetd restart

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rick Garland
Honored Contributor

Re: Telnet Fails

telnet is turned off by default in RH. Use the ssh protocol.

If must use telnet, ensure the package is loaded - do the rpm -qa | grep -i telnet

If loaded you will need to turn on within the xinetd.d and issue the command 'service xinetd restart'

Christopher_63
Occasional Contributor

Re: Telnet Fails

Dear friends,

When i make "cd /etc/xinetd.d" i found some files, but i don't know wich i must change to start telnet ?
Can you help me ?

Thank's a lot.
Best regards.
NiCK_76
Respected Contributor

Re: Telnet Fails

Hi,Christopher

edit file "/etc/xinetd.d/telnet", read my first reply carefully.

NiCK
just for fun
Ross Minkov
Esteemed Contributor

Re: Telnet Fails

Christopher,

I want to second a recommendation made by SEP earlier -- consider using ssh instead of telnet. telnet is not a safe protocol -- password travels in plain text over the network.

Regards,
Ross
Christopher_63
Occasional Contributor

Re: Telnet Fails

hi,

Please, how can i configure and launch ssh ?

Thank's a lot.
Best regards.
Huc_1
Honored Contributor

Re: Telnet Fails

have a llok at the following
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=646778
read the word document attached to the reply of SEP

It all there in better words then I could put it in...

Happy ssh and safe

Jean-Pierre
Smile I will feel the difference
Huc_1
Honored Contributor

Re: Telnet Fails

Sorry wrong cut and past the link with SEP attachement is the following

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=219369

Jean-Pierre

Smile I will feel the difference