Operating System - Linux
1828592 Members
2513 Online
109983 Solutions
New Discussion

Re: could not connect telnet in linux machine

 
ratheesh_1
New Member

could not connect telnet in linux machine

hello admins..
could not use my telnet protocol?? the machine says connection closed by foreign host.















4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: could not connect telnet in linux machine

What Linux distro are you using?

Is the telnet-server package installed?
rpm -qa |grep telnet

Is the telnet service enabled?
chkconfig telnet on

By default, telnet is not installed and disabled because of security restrictions.

You should use ssh instead.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jeroen Peereboom
Honored Contributor

Re: could not connect telnet in linux machine

And check /etc/xinetd.d/telnet: disable=no.
If yes, set it to no and restart xinetd (kill -HUP

JP
IT_2007
Honored Contributor

Re: could not connect telnet in linux machine

use ssh instead of telnet since this is disabled by default.

Thanks,
Srini
g33k
Valued Contributor

Re: could not connect telnet in linux machine

1)check telnet is installed and running as described above....
also you can use
ps axu | grep telnetd
to see if telnet is running.

2)if it's running and you are still not able to connect, check /etc/hosts.allow and /etc/hosts.deny

those file define access for hosts and networks... check host you are using to connect is in hosts.allow and isn't in hosts.deny

3)2nd step is OK then maybe access is blocked by firewall, iptables -L and check if telnet is allowed, and from where...
if you have firewall maschine between server with telnet and host you are accessing form you should also check this one...

it's quite depnedendent on network... so more specifications will help as to determine where problem is...

anyway as was said above. telnet is not secure, even any fucking script kiddie could sit on network and sniff, if you will use telnet he will know your password, even worse if you log as root or su during the session, he then will have full access to system and will able to do what ever he wants...
ssh is crypted so sniffing is nonsences only useble attack is man in the midle which is easy to recognize...

P.S.:if you have any additional question about security you can conntact me on mail g33k@seznam.cz