Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-25-2002, 07:36 PM
|
#1
|
LQ Newbie
Registered: Aug 2002
Posts: 5
Rep:
|
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
|
|
|
08-25-2002, 10:02 PM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
did you start the telnet daemon?
Are you running a firewall?
Is the sendmail daemon started?
|
|
|
08-26-2002, 02:03 PM
|
#3
|
Member
Registered: Jan 2002
Location: India
Distribution: Suse , Mandrake
Posts: 121
Rep:
|
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
|
|
|
08-26-2002, 02:56 PM
|
#4
|
LQ Newbie
Registered: Aug 2002
Posts: 5
Original Poster
Rep:
|
thanks everyone for your help.
it's fixed.
|
|
|
08-29-2002, 11:07 AM
|
#5
|
LQ Newbie
Registered: Aug 2002
Location: Central Florida
Distribution: SuSE 8.0
Posts: 4
Rep:
|
SuSE 8.0 telnet failure
What did you do to correct the problem? I have been fighting this for weeks.
Thanks
|
|
|
10-22-2002, 02:14 AM
|
#6
|
LQ Newbie
Registered: Oct 2002
Posts: 1
Rep:
|
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
|
|
|
10-22-2002, 10:52 AM
|
#7
|
LQ Newbie
Registered: Aug 2002
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
10-23-2002, 05:34 AM
|
#8
|
Member
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140
Rep:
|
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?
|
|
|
10-23-2002, 05:47 AM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you should use the search button up there, and make sure you try all the standard anwers first...
|
|
|
10-28-2002, 11:04 AM
|
#10
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
}
|
|
|
10-28-2002, 11:07 AM
|
#11
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
}
|
|
|
10-28-2002, 11:08 AM
|
#12
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
and of course make sure the servers are running
Last edited by DavidPhillips; 10-28-2002 at 11:09 AM.
|
|
|
10-29-2002, 11:04 AM
|
#13
|
Member
Registered: Oct 2002
Posts: 138
Rep:
|
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.
|
|
|
09-02-2006, 02:31 PM
|
#14
|
Member
Registered: Aug 2004
Distribution: Debian sarge 2.6.8-2-k7
Posts: 60
Rep:
|
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 03:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|