LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2015, 04:06 PM   #1
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Rep: Reputation: Disabled
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?
 
Old 04-11-2015, 05:10 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 5,698
Blog Entries: 3

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
Quote:
Originally Posted by harunaadoga View Post
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...
 
1 members found this post helpful.
Old 04-11-2015, 05:26 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,260

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
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

Last edited by michaelk; 04-12-2015 at 06:54 PM.
 
1 members found this post helpful.
Old 04-12-2015, 02:58 PM   #4
harunaadoga
LQ Newbie
 
Registered: Sep 2014
Location: Hatfield, United Kingdom
Distribution: Centos
Posts: 24

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-12-2015, 07:16 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
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.
 
Old 04-12-2015, 07:39 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 5,698
Blog Entries: 3

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
Cool, glad you got it working.

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

Regards...
 
  


Reply

Tags
centos, server, telnet


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet error centos centos123 Linux - Server 1 04-30-2011 03:10 AM
Telnet help on Centos 5.5 aggrishabh Linux - Newbie 12 04-11-2011 07:14 AM
CentOS server not accepting Telnet requests Azzath Linux - Server 10 02-21-2010 09:48 AM
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 08:09 AM
Telnet Client / CentOS riluve Red Hat 2 10-13-2006 11:51 AM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration