LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-09-2001, 02:20 PM   #1
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Rep: Reputation: 0
Unhappy Telnet Problem


When I try to telnet to my Linux box I get ok on 1 of the tty sessions. Then when I try to telnet to one of the systems within the network I keep getting the msg "telnet: tcp/telnet: unknown service" I have been telnetting in ok for over 2 years, then all the sudden this error msg appear. I have checked the /etc/services file and the telnet service is not # out. Any suggestions....
 
Old 11-09-2001, 09:54 PM   #2
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
xinetd.conf

Check the /etc/xinet.d/ directory for a file called 'telnet'
open it make sure it doesn't say
disable = yes

after that restart xinetd


If this telnet problem started happening after an upgrade than you can be sure this was the problem.

If this problem is still occurring tell us.
 
Old 11-10-2001, 03:37 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
with disable = yes, you'll get a denied message, not that error.
 
Old 11-11-2001, 02:17 PM   #4
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Original Poster
Rep: Reputation: 0
In the /etc directory there is no dir called /xinet.d However there is a file inetd.conf which you may be referring. There is no file called "telnet". I am using V6.2 of Red Hat. I recently installed and ran I program called "logcheck". I ran this command :
"rpm -i ftp//linuxserv.uga.edu/pub/unix/linux/redhat/contrib/libc6/
i386/logcheck-1.1.1-1.i386.rpm"

It installed and ran ok. I had it running for @ 2 days before I encountered the telnet/tcp error msg.

Maybe this is not a telnet problem - could it be a tcp configuration
problem? Any help....

Also I can't find any file simply called telnet. I ran :
"find / *telnet*"
and it came up blank...

Major drama here...
 
Old 11-11-2001, 02:23 PM   #5
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Original Poster
Rep: Reputation: 0
Also this may be of help. When I run the "netstat -na" it gives me the service telnet in a state=listen. The tcp service state=7 What does this tell me....I am not sure of this state=7.....Help....
 
Old 11-11-2001, 04:55 PM   #6
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
I'm running RH 7.1 so this may not be a workable command for you, but try

locate telnet

also try using chkconfig --list |less
which will tell you what services are available and which are running. If chkconfig works for you, then try

chkconfig telnet on

(all this must be done as 'su')


man chkconfig
 
Old 11-11-2001, 05:00 PM   #7
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Original Poster
Rep: Reputation: 0
"chkconfig telnet on"
gave me - error reading information on service:No such file or directory
 
Old 11-11-2001, 05:18 PM   #8
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
did you do a chkconfig --list ? Telnet is usually listed at the bottom. You should at least be able to see if it's there.

Maybe you need to reinstall telnetd....but I'm guessing and certainly far from the most experienced in this regard.
 
Old 11-11-2001, 05:46 PM   #9
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Original Poster
Rep: Reputation: 0
Telnet was not listed.....plot thickens...
How do I re-install telnetd...?
 
Old 11-11-2001, 05:59 PM   #10
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
If you have the RedHat cd's it should be there in the RPMS directory on one of them.

I just want to point out as an aside, telnet is a terrible remote access application, totally insecure and crackable.

I only use ssh, much more secure....OpenSSH should be in the same RPMs directory on one of your cd's.

Last edited by zhenwu; 11-11-2001 at 06:03 PM.
 
Old 11-11-2001, 06:03 PM   #11
skopje909
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat 6.2
Posts: 17

Original Poster
Rep: Reputation: 0
I totally agree with using telnet. I want to start using SSL. I don't know much about it. I have installed it and run the keygen program and made my own sshd_config file. Now how do I (if you can help) :
[1] Get to it via a Windows machine.
[2] With all these encrypted passwords - how do I actually set the password? Is this done on the Linux side?

Any suggestions is appreciated...
 
Old 11-11-2001, 06:13 PM   #12
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
Well, here's how I did it.

Install sshd via rpm -Uvh openssh.<version #>.rpm
chkconfig --level 2345 sshd on
make sure that port 22 is open through the firewall

Then, to connect via a windows machine, you need to get an ssh client for windows. I use PuTTY (do a google search for it: putty ssh). Putty will do both SSH and Telnet. It doesn't need to be installed and it's a tiny little .exe file.

Type in the IP and choose the SSh option, and just use the same user/pass as you would to login to your machine locally.

Works for me!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet problem. bruse Linux - Networking 7 09-15-2005 09:47 AM
i have telnet problem. bruse Linux - Newbie 3 08-12-2005 10:00 AM
telnet problem vivek007 Red Hat 2 10-31-2003 12:28 PM
problem with telnet - please help nairda Linux - Networking 2 10-26-2003 08:50 AM
telnet problem lomaree Linux - Networking 4 05-29-2003 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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