Solved

Telnet is not working

Posted on 2003-11-01
6
1,085 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help stop mail server from sending spam. 27 125
UNiX Script filesystem space usage Part2 54 87
Control Number of Log Files -Perl 7 72
add some character at the end of line in vi 7 79
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

770 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