LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   telnet connection refused (https://www.linuxquestions.org/questions/linux-networking-3/telnet-connection-refused-28767/)

hcmk 08-25-2002 07:36 PM

telnet connection refused
 
i am configuring suse 8.0 and i can't telnet to my machine. can't telnet to 127.0.0.1 from within either.

i get error message "connection refused" on loopback address. and when i'm trying to telnet from my windows box, i get "connection to host lost" before it gives me a login dialog.

inetd is started becuase i can ftp to my machine with no problem. i checked the settings in inetd.conf and the telnet line is not commented out. i also checked the rc.config and the ports are open.

i also can't send mail from the command line. (e.g. /usr/sbin/sendmail root < message) i get a connection refused.

any ideas??

thanks,
h

DavidPhillips 08-25-2002 10:02 PM

did you start the telnet daemon?
Are you running a firewall?
Is the sendmail daemon started?

manaskb 08-26-2002 02:03 PM

Hi hcmk,
You can do a nmap to see if you have any listeners for these daemons on you system. Alternatively you can use YaST2 con check the status of the daemon and also activate them if they are not running. Try YaST2->Network Basic ->Strat Stop Service( Inetd). Her you can see what processers are active and also activate process.
Thanks,
Manas

hcmk 08-26-2002 02:56 PM

thanks everyone for your help.

it's fixed.

hwert 08-29-2002 11:07 AM

SuSE 8.0 telnet failure
 
What did you do to correct the problem? I have been fighting this for weeks.
Thanks

kalyandhar 10-22-2002 02:14 AM

how did you solve the problem?
 
hello sir,
by the way how did fix the telnet problem?
plese let me know i have the same problem
kalyan

hcmk 10-22-2002 10:52 AM

i am trying to remember how i solved the problem. i believe that it was as simple as inetd was not scheduled to run at startup. i edited the runlevel editor to start inetd in runlevels 3 & 5. then i rebooted. it has been fine since then. for some reason in SuSE 8.0 inetd is not enabled by default on install. i had just installed 8.0 and i thought it would be.

correro 10-23-2002 05:34 AM

I have the same problem for weeks:
telnet/ftp localhost return "Connection refused"
I have no firewall installed.
What exactly should I do to make it work?

acid_kewpie 10-23-2002 05:47 AM

you should use the search button up there, and make sure you try all the standard anwers first...

DavidPhillips 10-28-2002 11:04 AM

it's probably disabled in xinetd.d/telnet if your system has that


[david@www david]$ cat /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

DavidPhillips 10-28-2002 11:07 AM

as far as ftp goes

[david@www david]$ cat /etc/xinetd.d/wu-ftpd
# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

DavidPhillips 10-28-2002 11:08 AM

and of course make sure the servers are running

nonamenobody 10-29-2002 11:04 AM

This post seems a little cluttered, so I would like to clarify.

On SuSE (8.0 and 8.1 at least), telnet is not enabled by default. First you need to make sure 'inetd' and 'telnet-server' are installed. Then you need to start 'inetd' using the runlevel editor in YaST2. Finally you need to edit your inetd.conf, the simplest way to do this is using the 'Start/stop services (inetd)' in YaST2.

You do not need to start a telnet server, inetd takes care of this.

One final point, you should really be using SSH rather than telnet. In addition to being more secure, it supports file copying (scp and sftp) and X11 forwarding.

>> inetd is started becuase i can ftp to my machine with no problem.

HCMK, FYI (just incase you have spotted it yet) ftp is an independant service (in SuSE), and is not started by inetd.

malbery 09-02-2006 02:31 PM

I was having problems, this worked for me in Ubuntu 6.06:

Install inetutils-telnetd and xinetd. Verify that the file /etc/xinetd.d/telnet contains:

Code:

service telnet
{
        flags          = REUSE
        socket_type    = stream
        wait            = no
        user            = root
        server          = /usr/sbin/telnetd
        log_on_failure  += USERID
        disable        = no
        groups          = yes
}

You might need to restart xinetd for changes to take effect. Any problems should show up in /var/log/daemon.log.


All times are GMT -5. The time now is 01:30 PM.