LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-02-2004, 08:58 AM   #1
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Rep: Reputation: 0
Question telnet is not working


Hi

While trying to solve a problem I created another one.

I cannot telnet to my local machine ... 127.0.0.1 Connectione refused.

Here is what I did: uninstalled sendmail and had to unsinstall mdadm, fetchmail, mutt.

chkconfig --list telnet ... returns: error readig information on service telnet: no such file or dir.

So what I guess: I somehow "managed" to remove telnet (it was there) while uninstalling sendmail (rpm -e sendmail)

HOW do I reinstall telnet?

Thx
JD
 
Old 08-02-2004, 09:22 AM   #2
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
first do a query to rpm to see if the package is installed:

rpm -q telnet

if rpm returns with the package being installed, then all you have to do is replace the xinetd file.

if not, simply reinstall the package.


hope i could help!!!



 
Old 08-02-2004, 09:39 AM   #3
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Original Poster
Rep: Reputation: 0
thanks, telnet is now on, but connection still refused. Yes I rebooted the machine.

Will a reinstall help?

Any comments?
JD
 
Old 08-02-2004, 09:46 AM   #4
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
you should never have to reboot a linux system.

first, if you are running iptables.... stop it to see if that is the problem.

Code:
/sbin/service iptables stop
then, if that doesn't work, save the following as a file named telnet in /etc/xinetd.d :

Code:
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags = REUSE
        log_on_failure += USERID
        socket_type = stream
        user = root
        server = /usr/sbin/in.telnetd
        wait = no
}
then restart xinetd:

Code:
/sbin/service xinetd restart


hope i could help!!!!




 
Old 08-02-2004, 09:49 AM   #5
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
also, if the telnet file exists in /etc/xinetd.d then, make sure the line disable = yes is set to either no, or the line is just totally deleted.

side note: if you will be connecting remotely via internet, then i recommend using ssh.
 
Old 08-02-2004, 10:05 AM   #6
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Original Poster
Rep: Reputation: 0
nope did not work.

I'll reinstall tomorrow (cd's @home)

thanks so far, i'll keep u informed.

JD
 
Old 08-02-2004, 10:16 AM   #7
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
always glad to help. let me know if you need anything else!



 
Old 08-03-2004, 03:39 AM   #8
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Original Poster
Rep: Reputation: 0
hmmm

reinstall did not help.

here'S what i did
- downloaded 0.17-30 installed it
- rpm -q states telnet
- chkconfig --list telnet states on
- /etc/xinitd.d/ contains telnet file with same contents as yours

telnet 127.0.0.1 25 -> connection refused

any ideas apart from reinstalling fedora system (Windows aproach)

many thanks ... hope that some time i will be able to help others ....

JD
 
Old 08-03-2004, 05:10 AM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:

telnet 127.0.0.1 25 -> connection refused

If that wasn't a typo telnet listens on port 23 by default, port 25 is SMTP.
 
Old 08-03-2004, 05:53 AM   #10
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Original Poster
Rep: Reputation: 0
it wasn't a typo (i'm telnetting to test mail) ...

port: 23 doesn't work either

JD
 
Old 08-03-2004, 06:10 AM   #11
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
can you do "netstat -tulanp" as root and see if its listening on 23 and 25.
 
Old 08-03-2004, 06:23 AM   #12
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Original Poster
Rep: Reputation: 0
netstat -tulanp

does not show any 23 or 25 ports

is there any service needed for running telnet ... apart from IP...i am currently typing on this box.

i guess it's error 40
JD
 
Old 08-03-2004, 06:27 AM   #13
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
for telnet as mentioned in the previous posts it needs to to launched by xinetd, so xinetd services needs to be started, and in the configuration file change disable = no.
For SMTP you need to configure your MTA
 
Old 08-03-2004, 06:42 AM   #14
JackDante
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian Etch
Posts: 15

Original Poster
Rep: Reputation: 0
well

xinetd is started and the telnet file looks as mentioned by LLL only i added disable = no, although it is probably not needed.

thx JD
 
Old 08-03-2004, 04:21 PM   #15
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
JackDante:

correct me if i'm wrong but reading your post seems like you installed telnet (client) but you haven't installed (or reinstalled) telnet-server package??

Regards
 
  


Reply



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 not working bijuhpd Linux - Newbie 2 05-12-2005 07:09 AM
Telnet on LAN not working oPi Linux - Newbie 7 02-03-2005 08:25 AM
Telnet not working mavles Linux - Networking 5 01-07-2005 01:31 AM
Telnet not working mbiker Linux - General 3 04-29-2002 04:03 AM
telnet not working keirobyn Linux - Networking 2 01-21-2002 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

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
Open Source Consulting | Domain Registration