Cannot telnet to another machine???

 When I  telnet from linux to another machine.  It can connect but if I telnet from another machine to linux, it cannot connect and show message "connection close by foriegn host".   I think, because I don't set in /etc/hosts.allow  file.  How can I do next?
pun121699Asked:
Who is Participating?
 
rbrConnect With a Mentor Commented:
You have to conntact the root user of the remote PC to allow your linux PC to telnet in the machine. If it is not allowed you can't.  If you are the root person of this pc add your IP our your name into the /etc/hosts.allow file.
0
 
pun121699Author Commented:
Edited text of question.
0
 
pun121699Author Commented:
If someone can answer my question I will respect  you are a good man and thank you very much.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
jacobyCommented:
hi pun,

please first check in /ect/inetd.conf
if the line containing "telnet" isn't after a #
in this case, remove the #, then save.
after, type:
ps -ax | grep inet.

you'll have something like :
452   ?    S    0:00   inetd

then type

kill -HUP   "your PID number  <= 452 for me"

if telnet isn't after #, just let me know.

Jacoby
0
 
pun121699Author Commented:
Thank you everybody answer my question.  After I check /etc/inet.conf.  The line containing "telnet" isn't after a # .  When
I kill process it show no such process.  Then I add  IP into /etc/hosts.allow and test again.  It still cannot  telnet.

0
 
kodiakbearCommented:
Fixed the -1 problem on this question.
Escrow points corrected.

kb
Community Support Moderator
Experts Exchange
0
All Courses

From novice to tech pro — start learning today.