LinuxQuestions.org
Register a domain and help support LQ
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 01-11-2008, 02:40 PM   #1
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
telnet error : checklist


Hi,
2 days back I faced a problem...
I wanted to start telnet on RHEL5 and SLES10SP1. But i was not able to.
It was giving error like illegal seek and was not allowing root to login and etc...
Most of the google result was saying that use SSH and not telnet... We know it but its an requirement to use telnet... So I am putting a summary how to debug the prob...

Debug telnet issue
1. Check out telnet server is running on DUT (i.e., the machine to which you want to telnet)
rpm -qa | grep telnet
If not, take rpm from net, install it and see.

2. If telnet-server is already there, see whether it is listening on correct port
netstat -tan
and there should be one entry like : tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN

3. If it is not there, checkout
chkconfig --list telnet
It should show you telnet on

4. If not, run chkconfig xinetd on
reboot

5. If this is also fine. Edit file vi /etc/xinetd.d/telnet
and add a line disable = no

6. If it is there, then edit file vi /etc/securetty
and add entries like pts/0 and pts/1 and pts/2 and pts/3 .... etc
chmod 644 /etc/securetty

7. If this is also fine. Then add an entry of the telnet client to /etc/hosts file on telnet server.
 
Old 01-11-2008, 03:47 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
The following are better ways to debug

1. Make sure telnetd is installed
rpm -qa |grep telnet-server

2. If it isn't installed install it.

3. After it is installed, see if it is running.
netstat -tl |grep telnet

4. If it isn't running see if you can start it:
sudo chkconfig telnet on
/etc/init.d/xinetd restart

The last two are fine.

8. If you still can't connect check your firewall settings.

HTH

Forrest

Last edited by forrestt; 01-11-2008 at 03:49 PM.
 
Old 06-08-2008, 10:51 PM   #3
filex
Member
 
Registered: Sep 2004
Posts: 56

Rep: Reputation: 15
Check /etc/xinetd.conf and make sure you have correct "only_from = xx.xx.xx.xx"
 
  


Reply

Tags
connection, error, illegal, refused, root, telnet


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
Checklist software, anyone? dotancohen Linux - Software 3 09-11-2007 05:55 PM
Xdialog checklist help serris Programming 2 10-31-2006 02:57 AM
security checklist ddaas Linux - Security 8 06-17-2005 05:36 AM
vpn checklist sanw2k Linux - Networking 1 10-20-2003 03:28 AM
Security CheckList miso Linux - Security 4 11-25-2002 04:23 PM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration