telnet won't start

General support questions
luvdemheels
Posts: 10
Joined: 2014/07/23 12:47:01

telnet won't start

Post by luvdemheels » 2014/07/23 12:50:57

I am getting the following:

Jul 23 08:22:03 testlinux.nacscom.com xinetd[1352]: bind failed (Address already
in use (errno = 98)). service = telnet
Jul 23 08:22:03 testlinux.nacscom.com xinetd[1352]: Service telnet failed to sta
rt and is deactivated.

When I run the following lsof I see:

lsof -i tcp:23
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
systemd 1 root 24u IPv6 14991 0t0 TCP *:telnet (LISTEN)

I have no clue what to do to get telnet running. Please help.
Last edited by luvdemheels on 2014/07/24 18:51:41, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: telnet won't start

Post by TrevorH » 2014/07/23 17:50:07

Silly question but why on earth are you trying to get telnet running? Hello! The '80s called and want their daemon back...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: telnet won't start

Post by chemal » 2014/07/24 01:31:37

Systemd also replaces xinetd, I guess. Forget everything you thought you knew. Learn systemd. :lol:

luvdemheels
Posts: 10
Joined: 2014/07/23 12:47:01

Re: telnet won't start

Post by luvdemheels » 2014/07/24 18:42:34

Really embarrassing but where i work i am stuck in the stone age and am tasked with getting this to work. Would appreciate any help!!

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: telnet won't start

Post by gerald_clark » 2014/07/24 23:21:10

yum install telnet-server
systemctl enable telnet.socket
systemctl start telnet.socket
firewall-cmd --add-service=telnet --permanent

luvdemheels
Posts: 10
Joined: 2014/07/23 12:47:01

Re: telnet won't start

Post by luvdemheels » 2014/07/25 13:00:31

Thanks for the replay. Tried that and still getting the same xinetd message as above and cannot telnet. Any other ideas?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: telnet won't start

Post by gerald_clark » 2014/07/25 22:00:09

C7 does not use xinetd to manage telnet.
Did you create an entry in /etc/xinetd.d for telnet?
If so, remove it and restart xinetd.d

I verified the instructions I posted work both with and without xinetd being installed.

luvdemheels
Posts: 10
Joined: 2014/07/23 12:47:01

Re: telnet won't start

Post by luvdemheels » 2014/07/25 23:57:35

Gerald, Thank you so much!!!!! :D

Good grief you just saved me. I can't believe I am stuck in the stone age but Thanks!!

math.qe
Posts: 2
Joined: 2017/11/02 10:30:28

Re: telnet won't start

Post by math.qe » 2017/11/26 20:10:23

Hi guys,

I have the same problem :/

Would you please help me?

[root@addie ~]# systemctl start telnet.socket
[root@addie ~]# systemctl enable telnet.socket
[root@addie ~]# telnet 192.168.0.110
Trying 192.168.0.110...
telnet: connect to address 192.168.0.110: No route to host

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: telnet won't start

Post by pjsr2 » 2017/11/26 21:53:05

Do not use telnet. It is a very unsafe protocol (it sends the login name and password without encryption across the network). Use ssh for your terminal connections.

That said, the message "No route to host" is likely caused by the firewall blocking the connection.

Also, don't login as root. Login as a non-root user and use the "sudo" command to execute those commands that really require root-privileges.

Locked