?
Solved

Telnet is not working

Posted on 2003-11-01
6
Medium Priority
?
1,091 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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 200 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

Independent Software Vendors: 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!

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

807 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