Solved

Telnet is not working

Posted on 2003-11-01
6
1,081 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now