Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-29-2017, 05:50 AM
|
#1
|
LQ Newbie
Registered: Feb 2017
Posts: 3
Rep: 
|
Telnet not giving response
telnet is not working Giving error.
|
|
|
03-29-2017, 05:57 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
It is probably being blocked by iptables or nothing is listening on port 80.
Do you have anything set-up/running on port 80, like apache or nginx?
Also if you are gunna screen capture things from windows, at least use the snipping tool rather than giving a screenshot of the entire desktop.
|
|
|
03-29-2017, 11:00 AM
|
#3
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by r3sistance
It is probably being blocked by iptables or nothing is listening on port 80.
...
|
Wouldn't telnet normally be using port 23 ? So for example:
telnet 127.0.0.1 23
|
|
|
03-29-2017, 11:24 AM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,550
|
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:
service httpd start
|
|
|
03-29-2017, 12:08 PM
|
#5
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,216
|
If you are running CentOS, then you need to make sure that telnet is installed (it's not a default) and configured, and then open the firewall for it.
Searching for "centos enable telnet" got me a lot of sites, of which this looks helpful
http://www.computernetworkingnotes.c...-in-linux.html
|
|
|
03-29-2017, 12:30 PM
|
#6
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,354
|
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.
|
|
|
03-29-2017, 12:30 PM
|
#7
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
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 ?
|
|
|
03-29-2017, 12:37 PM
|
#8
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
|
|
|
03-29-2017, 12:49 PM
|
#9
|
Moderator
Registered: Aug 2002
Posts: 26,550
|
Nope, ssh is not a factor.
The OP is not trying to connect to a telnet server
Last edited by michaelk; 03-29-2017 at 12:50 PM.
|
|
1 members found this post helpful.
|
03-29-2017, 01:32 PM
|
#10
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,086
|
Quote:
Originally Posted by michaelk
Nope, ssh is not a factor.
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 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.
|
|
|
All times are GMT -5. The time now is 01:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|