LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet is not working (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-is-not-working-212471/)

JackDante 08-02-2004 08:58 AM

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

linuxlastslonge 08-02-2004 09:22 AM

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!!!



:Pengy:

JackDante 08-02-2004 09:39 AM

thanks, telnet is now on, but connection still refused. Yes I rebooted the machine.

Will a reinstall help?

Any comments?
JD

linuxlastslonge 08-02-2004 09:46 AM

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!!!!




:Pengy:

linuxlastslonge 08-02-2004 09:49 AM

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.

JackDante 08-02-2004 10:05 AM

nope did not work.

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

thanks so far, i'll keep u informed.

JD

linuxlastslonge 08-02-2004 10:16 AM

always glad to help. let me know if you need anything else! :)



:Pengy:

JackDante 08-03-2004 03:39 AM

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

Demonbane 08-03-2004 05:10 AM

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.

JackDante 08-03-2004 05:53 AM

it wasn't a typo (i'm telnetting to test mail) ...

port: 23 doesn't work either

JD

Demonbane 08-03-2004 06:10 AM

can you do "netstat -tulanp" as root and see if its listening on 23 and 25.

JackDante 08-03-2004 06:23 AM

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

Demonbane 08-03-2004 06:27 AM

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

JackDante 08-03-2004 06:42 AM

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

RockmanExe 08-03-2004 04:21 PM

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


All times are GMT -5. The time now is 02:47 PM.