LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Telnet server on CentOS 7 (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-server-on-centos-7-a-4175539417/)

harunaadoga 04-11-2015 03:06 PM

Telnet server on CentOS 7
 
Hello guys, I am new to using Linux and trying to setup telnet server on CentOS 7. After installing with "yum install telnet telnet-server".
I tried editing the /etc/xinetd.d/telnet file which I could not find. Please what am I not doing right?

ardvark71 04-11-2015 04:10 PM

Quote:

Originally Posted by harunaadoga (Post 5345952)
I tried editing the /etc/xinetd.d/telnet file which I could not find. Please what am I not doing right?

Hi...

It looks like you might have to create the file if the package didn't do it for you. However, I don't know what to tell you to put in it. :(

Does the information here or using Google with these search terms help at all?

Regards...

michaelk 04-11-2015 04:26 PM

In a nutshell CentOS 7 uses Systemd which has replaced xinetd. To start the telnet server enter the command below. The preference is using ssh over telnet since telnet is not secure.

systemctl start telnet.socket

harunaadoga 04-12-2015 01:58 PM

thanks
 
telnet server now up and running but I had to add:
-A INPUT -p tcp -m state --state NEW --dport 23 -j ACCEPT
in the iptables file to allow port 23 (telnet) and some few firewall commands. Using it in a lab environment so no problem with the clear text issue. SSH is a better option in a production environment.

jpollard 04-12-2015 06:16 PM

In a lab environment it would STILL be better to use ssh.

telnetd promotes bad habits, and you never know when an internet connection gets added.

ardvark71 04-12-2015 06:39 PM

Cool, glad you got it working. :)

If you would, please mark this thread as "SOLVED."

Regards...


All times are GMT -5. The time now is 03:51 AM.