LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2007, 08:00 AM   #1
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Rep: Reputation: 16
CentOS server not accepting Telnet requests


Hi Guys,
I have a CentOS 5.0 server newly installed and trying to configure telnet on it.
I have done the following already
Code:
0n the xinetd.d/telnet file

# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = No //Done this
flags = REUSE
socket_type = stream 
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
Then I have started the vsftpd deamon
Code:
/etc/init.d/vsftpd start
Then
Code:
/etc/init.d/xinted reload
When I telnet my server I get this Error..
Code:
"Unencrypted connection refused. Goodbye".
I have read previous threads and cannot find a solution from them. Could someone please help me to solve this issue.

PS:I have managed to set up telnet on CentOS 3.4 and FC 5 and works fine.

Thank you in-advance,
Best Regards,
A .
 
Old 05-29-2007, 08:04 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Use SSH2 instead if you can, as far as I understand it's (a lot) more secure than telnet. Especially if you ever planned to use passwords..

The error message seems to tell that the server won't allow unencrypted connections (whatever it means in this case) and that you are trying to establish an unencrypted connection, and so it fails. Solution: either make your server accept unencrypted connections too (not wise I'm afraid, or safe) or make your client connect with encryption..
 
Old 05-29-2007, 09:33 AM   #3
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
You mean to use a telnet client for windows such as putty to use SSH2/SSH? Whats the command like to telnet using SSH2 from a UNIX machine to another UNIX machine?

Thanks for your reply b0uncer.

Any more answers welcome.

Thank you in-advance,
Regards,
A.
 
Old 05-29-2007, 10:27 AM   #4
mmn357157
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RHEL
Posts: 20

Rep: Reputation: 0
run the following command and check the output

Code:
# chkconfig --list | grep telnet
if its something like this

Code:
ekrb5-telnet: on
krb5-telnet: on
telnet: on
telnetd: on
You can turn off kerbarose enabled services by

Code:
# chkconfig ekrb5-telnet off
# chkconfig krb5-telnet off
there is a conflict occures when all these services are enabled and your request will probably deny.

Also, try using SSH instead of telnet. its quiet easy to configure and use.
more at: http://www.linuxhomenetworking.com/w...d_File_Copying
 
Old 05-30-2007, 04:07 AM   #5
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
Using SSH2 I could Telnet to the Server.

@mmn357157:
Only ekrb5-telnet: on
krb5-telnet: on
was on.

Thanks Guys for all your help

Best Regards,
Azzath.
 
Old 02-20-2010, 02:08 PM   #6
tuewru
LQ Newbie
 
Registered: Feb 2010
Location: Hanoi - Vietnam
Distribution: Centos v5
Posts: 9

Rep: Reputation: 0
i have same Azzath's problem
I use Centos OS v5
I can't telnet into virtual server running Centos OS, but i can use SSH that connect to virtual server running Centos OS


I want to telnet into Centos, although SSH ok

Quote:
[root@cisco root]# chkconfig --list |grep telnet
ekrb5-telnet: off
krb5-telnet: off
telnet: on
Quote:
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-02-20 11:48 EST
Interesting ports on cisco (127.0.0.1):
Not shown: 1673 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
111/tcp open rpcbind
631/tcp open ipp
737/tcp open unknown
742/tcp open netrcs

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

Please help me
 
Old 02-20-2010, 02:53 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Hi,

You should start a new thread describing your problem and not a 3ys old one.
Anyways since port 23 is open from localhost, are you sure it's not a firewall problem?
 
Old 02-21-2010, 04:19 AM   #8
tuewru
LQ Newbie
 
Registered: Feb 2010
Location: Hanoi - Vietnam
Distribution: Centos v5
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,

You should start a new thread describing your problem and not a 3ys old one.
Anyways since port 23 is open from localhost, are you sure it's not a firewall problem?
thanks bathory
In Centos OS, I allowed port 23 (Telnet) in Firewall configuration option
In Windows Firewall of Window OS , it exceptions port 23
Finally :

Quote:
C:\Documents and Settings\AdminCisco>telnet 192.168.1.5
Connecting To 192.168.1.5...Could not open connection to the host, on port 23: Connect failed
192.168.1.5/24 : server Centos v5
192.168.1.200/24 : client Windows OS
 
Old 02-21-2010, 04:43 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Can you try from the Centos box and see what you get?
Code:
telnet localhost
 
Old 02-21-2010, 09:37 AM   #10
tuewru
LQ Newbie
 
Registered: Feb 2010
Location: Hanoi - Vietnam
Distribution: Centos v5
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Can you try from the Centos box and see what you get?
Code:
telnet localhost

i try to command "telnet localhost"that you suggestion and result :

Quote:
[root@cisco ~]# telnet localhost
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
thanks you for support me
 
Old 02-21-2010, 09:48 AM   #11
tuewru
LQ Newbie
 
Registered: Feb 2010
Location: Hanoi - Vietnam
Distribution: Centos v5
Posts: 9

Rep: Reputation: 0
I solved my problem
I searched Google and found a URL "How to enable telnet server on Centos 5"
Code:
 http://www.lecuong.info/How-to-enable-telnet-server-on-Centos-5/
I try command
Quote:
[root@lecuong ~]# /etc/init.d/xinetd restart
and i successful
I can telnet localhost and can telnet my virtual machine running Centos 5

Thanks all people for support me
I'm very happy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux server will stop responding to telnet requests lab123 Linux - Security 3 10-25-2005 01:37 PM
Linux server stops responding to telnet requests lab123 Linux - Networking 1 10-25-2005 12:51 PM
SSL not accepting requests. ryedunn Linux - Security 10 10-22-2004 09:13 AM
Fedora Core 2 - not accepting any requests jclstone Linux - Newbie 2 09-28-2004 08:11 AM
nocatauth not accepting requests on port 80 majortool Linux - Wireless Networking 0 07-13-2004 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:41 AM.

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