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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

rbrCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.