Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It was common to use the telnet client to check TCP connections to a server that isn't telnet. As stated it does not appear that anything is currently running on port 80 which is typically a web server. Since the OP has logged into the server the default firewall settings should not be a factor unless they were modified.
From your other post it appears you are running CentOS. Is apache or other web server installed? Try:
With openSUSE, several changes from defaults are required to get the telnet server to respond:
1-systemctl enable xinetd
2-pam-config --add --unix-nullok
3-chkconfig telnet on
4-comment or remove in /etc/pam.d/remote the auth line that includes ignore=ignore
With other distros it may be enough to enable xinetd.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
ANYONE:
------------
I just noticed that this is being run remotely while logged into the linux machine over an ssh session from a Windows machine (using PuTTY). Could it be that sshd_config on the remote linux machine is not set up to accept telnet over ssh ?
The OP is not trying to connect to a telnet server
All of those referring to a telnetd server or steps to start one, or the PORT it would use: these things have NOTHING to do with the question.
On the server, the user is using telnet NOT to get a session, but to test port 80 listening on localhost
(the loopback port) and the connection is refused. The telnet is working fine, but reporting that nothign is listening on port 80 or that the connection is blocked so it APPEARS nothing is listening on port 80.
OP: please try this command
Code:
netstat -an|grep LIST|grep -v ING
and examine the output for some line or lines that include
Quote:
:80
and yes you could grep for it but this also tells you what else is or is not listening and that may be useful.
If there is nothing listening on port 80, there you go. You need a service (the httpd examples and comments above pertain) listeing on port 80 or that telnet command will always return that result.
I hope that is somewhat more clear. Please let us know what you discover, and how else we can help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.