Solved

Telnet is not working

Posted on 2003-11-01
6
1,088 Views
Last Modified: 2013-12-27
Hi,
  I've just installed Sun Solaris 8 ,and found that I can not telent to the new server from another machine .and also I can not connect using the x-window (XDMCP) ,
but from the same server I can connect to others using telnet .
Please advice ,are not these software are installed by default ? and how can I install,and configure them if I have to ?
0
Comment
Question by:halfaifi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 9662311
Firstly, type:
ps -ef|grep telnetd
to see if the service is running.
What error do you get "Connection Refused" or "Trying..." or what?
type:
grep telnet /etc/inetd.conf
what is the result
Do the files /etc/hosts.allow & /etc/hosts.deny exist and if so what is in them?
As for remote XDMCP, have you added the remote machine into your Xaccess file (I think in /usr/X11/etc), do a find for it
0
 
LVL 1

Author Comment

by:halfaifi
ID: 9662416
1-ps -ef|grep telnetd
nothing
2-error when trying to connect from another server
Connection Refused
3-grep telnet /etc/inetd.conf
telnet  stream  tcp6    nowait  root    /usr/sbin/in.telnetd    in.telnetd
4-Do the files /etc/hosts.allow & /etc/hosts.deny exist ?
no files
5-Have you added the remote machine into your Xaccess file ?
I found this file /lib/xdm/Xaccess
but all entries are the default ,I have not added anything.
0
 
LVL 18

Expert Comment

by:liddler
ID: 9662432
1. Telnetd server is not running, it should have been started by inetd
Try this
ps -ef|grep inetd
is it running?  If not type:
/sbin/inetd -s -t
if it is do
pkill -1 inetd
then try telneting in
Look for any errors in /var/adm/messages from inetd or telnetd
5. I'm not in front of a sun box today, but I think you need to add the IP address and or hostname of the remote X client into the Xaccess file, type:
man xdm
and read the section on Xaccess
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:halfaifi
ID: 9662493
The inetd is running ,
I follwed the steps you gave me ,but there are no entries in the /var/adm/messages for
inets or telnetd

for Xaccess file ,I have another unix box (solaris 8)  with same file ,and it is working without adding host names.
I have found also that the FTP is not working too.
but when I ftp from same server to another server it is working fine.
I think that all of these problems are related to each other.
0
 
LVL 18

Accepted Solution

by:
liddler earned 50 total points
ID: 9662522
ftp / telnet from a machine is independant from ftpd / telnetd which are the services.
try typing
telnet 0
(which should connect you to the local telnet service) Does this work?
If not, there is something wrong with inetd.  I would suggest you kill it and restart it.
pkill -9 inetd
inetd -s -t
Then take a look in /var/adm/messages
If telnet 0 works, it it a network problem, we then need to look at subnet mask / broadcast address (via ifconfig -a) and firewall and / or router logs
0
 
LVL 1

Author Comment

by:halfaifi
ID: 9665336
liddler ,
  The telnet 0 works fine ,Which mean it is network problem .
- I checked all configuration and found that there is old entry for this server in the DNS with wrong IP address ,
When I correct it ,I was able to telnet.

Thanks a lot
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question