0

When I try to run the telnet service on CentOS Linux release 7.2.1511 it throws the following error:

service telnet restart 
Redirecting to /bin/systemctl restart 
telnet.service Failed to restart telnet.service: Unit telnet.service failed to load: No such file or directory.

The telnet server version running on my machine:

rpm -qa | grep telnet 
telnet-0.17-59.el7.x86_64 
telnet-server-0.17-59.el7.x86_64

How can I successfully start the telnet service on my machine?

1
  • 1
    What's the command you used? Did you used root account?
    – The One
    Apr 26, 2016 at 7:40

2 Answers 2

2

On CentOS 6:

service xinetd start
chkconfig telnet on
chkconfig xinetd on

On CentOS 7:

systemctl start telnet.socket
systemctl enable telnet.socket
1

You don't seem to have telnet installed. You can install it with:

sudo yum install -y telnet
5
  • tried above given command..but still it doesnt work[root@localhost ~]# systemctl start telnet.socket [root@localhost ~]# systemctl enable telnet.socket [root@localhost ~]# service telnet restart Redirecting to /bin/systemctl restart telnet.service Failed to restart telnet.service: Unit telnet.service failed to load: No such file or directory.
    – Maverick
    Apr 26, 2016 at 7:53
  • Why do you start the telnet.socket? You have to start the telnet.service. And please, please don't paste multiline output in a comment (and if you put it in your post, be so kind as to format things correctly).
    – Anthon
    Apr 26, 2016 at 8:04
  • i have already run the command you gave and it shows "Package 1:telnet-0.17-59.el7.x86_64 already installed and latest version"
    – Maverick
    Apr 26, 2016 at 9:07
  • Try to run yum reinstall telnet and if that doesn't help yum remove telnet followed by yum install telnet (all with sudo if appropriate)
    – Anthon
    Apr 26, 2016 at 9:11
  • Their rpm output shows that package is already installed. You enable the socket activation because that replaces the xinetd functionality. Example.
    – Bratchley
    Apr 27, 2016 at 1:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .