LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2005, 11:41 PM   #1
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Rep: Reputation: 15
telnet


i am getting the error when i connect through telnet.

[root@hari root]# telnet
telnet> open 192.168.1.81
Trying 192.168.1.81...
telnet: connect to address 192.168.1.81: Connection refused

when i check with chkconfig it is telling telnet is on.

How can i rectify this error. Previously it was working fine.
 
Old 06-13-2005, 11:52 PM   #2
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
are you behind a firewall? but can I ask why you want to use telnet? ssh seems to be a much better choice...
 
Old 06-13-2005, 11:56 PM   #3
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Original Poster
Rep: Reputation: 15
When i use ssh iam getting the same problem. I am using the firewall (firestarter). I also checked without firewall also, the same error is getting.

[root@hari root]# ssh 192.168.1.81
ssh: connect to host 192.168.1.81 port 22: Connection refused

regards
hari
 
Old 06-14-2005, 12:01 AM   #4
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
mmm... confusing indeed, are you sure you don't have any issues with your connection (proxy...) ?
Best,
A.
edit: also did you try to use telnet (or ssh) to connect to another server? can be just down...
 
Old 06-14-2005, 12:06 AM   #5
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Original Poster
Rep: Reputation: 15
Hello,

I am able to connect other server through telnet/ssh. Only particular server which i am telling is not able to connect.

see the example

telnet 192.168.1.101
Trying 192.168.1.101...
Connected to 192.168.1.101.
Escape character is '^]'.

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.2-2 on an i686
login:



But when i am going to connect My server

telnet 192.168.1.81
Trying 192.168.1.81...
telnet: connect to address 192.168.1.81: Connection refused
[root@hari root]#

regards
hari
 
Old 06-14-2005, 12:16 AM   #6
Arnaud_B
Member
 
Registered: Jun 2004
Location: New York
Distribution: Debian
Posts: 219

Rep: Reputation: 30
oh ok that's different and it is *your* server. from what i understand telnet/ssh are not guilty but you have to configure something in your server...
By the way, did you already manage to connect to this server or it is a first time setup?
well... I am not an expert at all on that and I dont think I will be able to help you actually, sorry, I hope someone else is going to come...
Good Luck!
A.
 
Old 06-14-2005, 12:23 AM   #7
frankjp
LQ Newbie
 
Registered: Jun 2005
Location: Around the world
Distribution: Fedora Core 2 3 4 and Freebsd 5
Posts: 10

Rep: Reputation: 0
I am Frankjp

are you sure that telnet and ssh services are running in your server? I mean in the computer that you want to connect.
please check , check the network connection and try again.

Hope it can help you

Frankjp

Last edited by frankjp; 06-14-2005 at 12:27 AM.
 
Old 06-14-2005, 12:42 AM   #8
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Original Poster
Rep: Reputation: 15
Hello Frank

see this

chkconfig --list telnet
telnet on
[root@hari root]#

TELL ME or what else i have to check

regards
hari
 
Old 06-14-2005, 01:19 AM   #9
frankjp
LQ Newbie
 
Registered: Jun 2005
Location: Around the world
Distribution: Fedora Core 2 3 4 and Freebsd 5
Posts: 10

Rep: Reputation: 0
Hello,

It means telnet is working normally. If between you computer and 192.168.1.81 there is not firewall
then there is no raison to fall. Please try also ftp and sftp and give the result.
Normally with sftp and ssh the connection is possible even behind a strong firewall.

Sorry, I don't know what can be your problem. Please, from another computer, try also to connect you present computer with telnet and see what can be the result.

Hope you would find the solution.

Regards

Frank
 
Old 06-14-2005, 01:33 AM   #10
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Original Poster
Rep: Reputation: 15
Hello

The rest of the applications are working fine (ftp,ssh). Only telnet is not working. Is telnet is connected with mysql. I hope after i installed mysql i am getting this problem.

regards
hari
 
Old 06-14-2005, 01:34 AM   #11
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
try the folowing

#service xinetd restart

on the server side, in which you are telnetting.
 
Old 06-14-2005, 01:36 AM   #12
doctor_sniff
LQ Newbie
 
Registered: Aug 2003
Location: Iran
Distribution: GNU Linux
Posts: 24

Rep: Reputation: 15
your cient can ping your server or server can ping client?
 
Old 06-14-2005, 02:04 AM   #13
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Original Poster
Rep: Reputation: 15
Hello

Tell me how do i change telnet port number (23 to something).

regards
hair
 
Old 06-14-2005, 02:06 AM   #14
ilnli
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Slackware 10.0, SUSE 9.1, RH 7, 7.3, 8, 9, FC2
Posts: 413

Rep: Reputation: 32
Hi hariiyer my name is Imran

what I have came to know is that only two things can occur either you telnet service is not running correctly or your firewall is blocking it confirm these two things by yourself and also try to telnet by sitting on the server to whom you wanna telnet from another server
i.e; telnet localhost
and tell me the results.
 
Old 06-14-2005, 03:53 AM   #15
hariiyer
Member
 
Registered: May 2004
Location: india
Posts: 103

Original Poster
Rep: Reputation: 15
Hello Imran

When i start xinetd service i am getting OK. But when i check the status this is the message i am getting, what is this

What is the error

[root@hari 4.12]# service xinetd status
xinetd dead but pid file exists

when i am trying to connect localhost i am getting the same error.

regards
hari
 
  


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
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 12:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet IP seb77 Linux - Newbie 4 10-15-2003 03:15 PM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 06:34 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:43 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