System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable telnet in linux enterprise

pratapvfr
Advisor

how to enable telnet in linux enterprise


i am having below error, i had cheched in services telnet is checked and running fine, can not telnet to this linux box, ssh is working fine, what is missing?

abcd:/root/home/testac> telnet pcras
Trying...
telnet: Unable to connect to remote host: No route to host
10 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: how to enable telnet in linux enterprise

Hi,

# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = yes
}


You can create this file and as prior poster says change "disable = no"

Also run "iptables" and verify you aren't excluding everything. You might need to open up telnet's port there if you are.

if you can't connect to the telnet server try to change firewall setting.

mikap
pratapvfr
Advisor

Re: how to enable telnet in linux enterprise

not clear what you want to tell here,
pls. let me know in simple way, thanks,
Michal Kapalka (mikap)
Honored Contributor

Re: how to enable telnet in linux enterprise

hi,

sorry i forgot to send you wich file should be edited : /etc/xinit.d/telnet

i think there is a firewall setting that don't permit you to connect telnet server on your remote host.

mikap
pratapvfr
Advisor

Re: how to enable telnet in linux enterprise

current setting is same what you mentioned but still can not do telnet, any other clue?
Michal Kapalka (mikap)
Honored Contributor

Re: how to enable telnet in linux enterprise

hi,

ok connect to the remote server via SSH,

and test telnet localhost,

if its working them the problem is on the network layout or firewall setting.

mikap
pratapvfr
Advisor

Re: how to enable telnet in linux enterprise

yes it works,
what we need to verify to enable telnet now?
Michal Kapalka (mikap)
Honored Contributor

Re: how to enable telnet in linux enterprise

hi,

use nmap if your remote server have opened port for telnet session, but i think this is a typical problem with the network or firewall.

mikap
Michal Kapalka (mikap)
Honored Contributor

Re: how to enable telnet in linux enterprise

hi,

use iptables -L

if the telnet connection on your server is disabled, or you could use

on the remote server :

telnet IP_of_your_server ( instead of localhost )

mikap
Steven E. Protter
Exalted Contributor

Re: how to enable telnet in linux enterprise

Shalom,

telnet server might not be installed.

yum -y install telnet-server
#name varies by distribution.

After editing the /etc/xinit.d/telnet file change disable=yes to disable=no
# so intuitive.

/etc/init.d/xinetd restart

netstat -an | grep ::23 "
# confirms telnet is listening

You do know of course that ssh does everything telnet does and is secure.

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
Nido
Trusted Contributor

Re: how to enable telnet in linux enterprise

Hello Pratap,

Check the firewall setting for the host.

#iptables -L

Check the SE Linux status:
# sestatus


Good Luck!!
" Let Villagers Be Happy!! "