Solved

Telnet is not working

Posted on 2003-11-01
6
1,083 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
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.

932 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now