I just install Centos 7 on my laptop. I have also installed telnet-server and telnet. I can telnet to other server from my local CentOS 7 but can not telnet localhost also, i can not telnet to my localhost from other server. I try to check telnet file in /etc/xinetd.d directory but the file "telnet" is not there. Please can someone help me with the steps to install telnet or enable telnet services on CENTOS 7 so that i can telnet my localhost. Below is the error message: [claire at ittestsrvr ~]$ telnet localhost Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused
On Mon, Nov 24, 2014 at 9:33 AM, Samson <okosam at gmail.com> wrote:> I just install Centos 7 on my laptop. I have also installed telnet-server > and telnet. > I can telnet to other server from my local CentOS 7 but can not telnet > localhost also, i can not telnet to my localhost from other server. > > I try to check telnet file in /etc/xinetd.d directory but the file "telnet" > is not there. > > Please can someone help me with the steps to install telnet or enable > telnet services on CENTOS 7 so that i can telnet my localhost. > > Below is the error message: > [claire at ittestsrvr ~]$ telnet localhost > Trying ::1... > telnet: connect to address ::1: Connection refused > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refusedI will not go over the question about running telnet in your laptop; others will chime in. Now that is out, did you check whether telnet is running using ps and netstat?> _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
On Mon, Nov 24, 2014 at 9:38 AM, Mauricio Tavares <raubvogel at gmail.com> wrote:> On Mon, Nov 24, 2014 at 9:33 AM, Samson <okosam at gmail.com> wrote: >> I just install Centos 7 on my laptop. I have also installed telnet-server >> and telnet. >> I can telnet to other server from my local CentOS 7 but can not telnet >> localhost also, i can not telnet to my localhost from other server. >> >> I try to check telnet file in /etc/xinetd.d directory but the file "telnet" >> is not there. >> >> Please can someone help me with the steps to install telnet or enable >> telnet services on CENTOS 7 so that i can telnet my localhost. >> >> Below is the error message: >> [claire at ittestsrvr ~]$ telnet localhost >> Trying ::1... >> telnet: connect to address ::1: Connection refused >> Trying 127.0.0.1... >> telnet: connect to address 127.0.0.1: Connection refused > > I will not go over the question about running telnet in your > laptop; others will chime in. Now that is out, did you check whether > telnet is running using ps and netstat? >Also, how did you turn telnet on? Leave xinetd alone. What does systemctl status telnet.socket tell you?>> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos
On Mon, Nov 24, 2014 at 03:33:24PM +0100, Samson wrote:> > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refusedBecause telnet is 1970s tech that should die in a fire; it's not enabled by default nor does the firewall permit it by default. Why are you wanting to use telnet in the first place? John -- There is something fundamentally wrong with a system where not being charged with a war crime keeps you locked away indefinitely and a war crime conviction is your ticket home. -- Morris Davis, retired USAF Colonel, former Chief Prosecutor for the terrorism trials at Guantanamo Bay, 29 April 2013 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20141124/87611db7/attachment-0001.sig>
On Mon, 24 Nov 2014 08:46:33 -0600 John R. Dennison wrote:> Why are you wanting to use telnet in the first place?I don't know what his use case is, but I installed telnet on this computer a while back for the Android Remote Keyboard app. https://play.google.com/store/apps/details?id=de.onyxbits.remotekeyboard -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
On 11/24/2014 6:38 AM, Mauricio Tavares wrote:> I will not go over the question about running telnet in your > laptop; others will chime in. Now that is out, did you check whether > telnet is running using ps and netstat?useless advise, since telnet is almost always run from a socket, the telnetd is only running if there's an active connection. to the OP, the *correct* answer is, do not use or touch xinetd, and if you modified anything in xinetd, undo it. heck, uniinstall xinetd, nothing in RHEL7/CentOS7 uses xinetd anymore. root# systemctl enable telnet.socket root# systemctl start telnet.socket the first command enables it so its available when the system is rebooted. the 2nd command starts it now. now, I will have to concur, the telnet protocol should be banned, and anything using it should be updated to use ssh instead. I haven't enabled telnetd on any unix/linux host for the last 10+ years. -- john r pierce 37N 122W somewhere on the middle of the left coast