Question

SSH logging problem, Xinetd related?

Asked by: Larand

*********  Uninstalled, reinstalled, now works like a charm!  Well, Telnet that is........*********




Hi!  I have a ssh server running and installed, as well as a telnet server and the cvspserver installed.

All three are managed by Xinetd, and for some odd reason, i cannot log into either one of them.  All three are enable in their script files, but still no luck.

I am using Linux Mandrake 9.0.  Has anybody had similar problems?

I look in my services running panel, and telnet is there, but lsited as stopped.  I then check my disable line in the tenet script for xinetd and it is set to no.  Why isnt it starting up?

All help is greatly appreciated!

Sincerely,
Andre LeFort

EDIT: Turns out SSH is not handled by Xinetd, my mistake.  I still want to get Telnet and CVS working, just to know that they are working.  Once I get Telnet working, I will promptly switch to SSH once it is also fixed.  I do believe that my problems are still related to Xinetd.  Could my firewall be causing problems?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-04-12 at 17:21:18ID20583391
Tags

logging

,

cvs

,

cvspserver

,

problems

,

ssh

Topic

Linux Networking

Participating Experts
4
Points
500
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. RedHat xinetd log question
    I have a RH 7.1 setup as a server and it uses xinetd to control many of the network services. ] While most of these are disabled, I'd like to have some information about failed attempts to connect to disabled ports. Is there a logging option to xinetd that will tell me f...
  2. Xinetd  Setup Problem
    I have a Redhat linux 7.3 computer acting as gateway to a T1 internet line (This has two NICs). Many of our LAN computers mostly running windows 95/98 access internet through this. I have setup squid for this as proxy. I have stopped ftp and telnet services on the linux proxy...
  3. VNC and Mandrake 9.2
    I have just installed the download edition on mandrake 9.2. I am trying to get tightVNC to run using kdm and xinetd. xinted is starting vnc when a request comes but all I get is the default grey X screen with no login window. From looking around the net I gather this mean...
  4. ssh disconnection after idle period
    Gentlemen, I will try to be as consise as possible. client machines: Mandrake 9.0: OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f Mandrake 9.1: OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f Default ssh_conf server machines: SuSE 8.1...
  5. SSH Mandrake 9.2 with security set to "higher"
    I am a first-time Linux user putting together a secure Apache server, running on Mandrake 9.2. Access would be on ports 80, 443 and via SSH only. Using the msec security level of 3 (="high") allows access via SSH, but setting it to 4 does not. I have looked to s...
  6. xinetd help
    I need a little help with setting up a backup for my Squid box. I have Squid setup in reverse proxy mode for a web site. I'm looking to setup a failover if the Squid service fails for any reason. I was told xinetd could help with this. I need something that checks that Squid,...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: The--CaptainPosted on 2003-04-13 at 00:40:05ID: 8321240

netstat -apne

will tell you what ports on which your box is listening - if you don't see 23 (telnet) in there, then you need to play with you xinetd config.  If port 23 is listed, but you still have problems, check your /etc/hosts.allow and /etc/hosts.deny files, as well as /var/log/messages and /var/log/secure (you logs may be referenced by different names - it's up to you to find them)

When you say you cannot log in, do you get "connection refused" or similar error messages, or does it just hang?

If it just hangs, have you tried waiting 5-10 minutes? - some services have a real problem with invalid/unreachable DNS entries in resolv.conf, and will hang for quite some time before accepting your connection.  If this is the case, check your /etc/resolv.conf file.

Also, remember that tcpdump is your friend - try watching local traffic on port 23 while you are attempting to connect with:

tcpdump -l -n 'port 23'

This may give some indication of the problem.

Also, check your iptables or other filters to be sure you are not blocking such traffic.

Cheers,
-Jon

P.S.  I'd personally try to get ssh working and forget about telnet, unless you enjoy sending your authentication in plain text.  Let me know how I can help to get your ssh working, if at all possible.


 

by: Flash828Posted on 2003-04-13 at 07:05:05ID: 8322003

I would check to see if you have IPChains or IPTables running and blocking these ports.  In order to do this, you can invoke "/etc/init.d/iptables stop".  Please note that since netfilter (iptables) is kernel based, this is not actually stopping anything.  All it is doing is flushing all the tables/chains out and setting default policy to accept on everything.  See if you can access telnet now.  If you can, and are using IPTables, then add the following lines to your iptables script (redhat installation will be /etc/sysconfig/iptables).

-A INPUT -p TCP --dport 22 -j ACCEPT
-A OUTPUT -p tcp --sport 22 -j ACCEPT

Please note that that will accept ALL incoming traffic from all sources coming into the machine to port 22, and ALL outgoing traffic from your machien going out from port 22 on your local machine.

This would only be neccesary if the default policy is to reject packets from either chain (eg if you have a default reject policy on the INPUT chain, then you only need the input line, if you have a default reject policy on the OUTPUT chain, then you only need the output line.  If you have both, then you need both lines).  However first check by "turning off" (even though no such thing happens) iptables.

 

by: LarandPosted on 2003-04-13 at 07:22:05ID: 8322047

After Uninstalling and reinstalling Telnet, somehow it works.  I can now access my PC on port 23 from the outside as well as locally.  Now I simply have to configure SSH and CVS......

;)

I hav an exam this afternoon, but I will be using the many tips you have both given me as soon as I come back, thank you both!

 

by: LarandPosted on 2003-04-13 at 08:22:16ID: 8322253

After Uninstalling and reinstalling Telnet, somehow it works.  I can now access my PC on port 23 from the outside as well as locally.  Now I simply have to configure SSH and CVS......

;)

I hav an exam this afternoon, but I will be using the many tips you have both given me as soon as I come back, thank you both!

 

by: The--CaptainPosted on 2003-04-13 at 19:26:58ID: 8324206

Umm, flash is right about how to check if your iptables config is hurting you (flash - thanks for backing me up on that being a possibility), but you need port 23, as I said, not 22, as he asserts (port 22 is the default for your ssh server).

Cheers,
-Jon


 

by: Flash828Posted on 2003-04-13 at 23:14:54ID: 8324809

Yeah my bad, I was troubleshooting the SSH connection.  23 is telnet, 22 is ssh, 21 is ftp, and cvs is 2401.

 

by: LarandPosted on 2003-04-13 at 23:25:41ID: 8324840

Ok, Telnet is 100% working.  Now, I ran this command:

netstat -apne

and I looked through the entries it displayed, port 23 is listed and registered to Xinetd.  Which makes sense, since it works.  Now, also, port 22 is listed, with SSHD being the program on that port.  So it appears I am listening.  I cannot however, use Putty to login from the outside source, but I can do it successfully on th elocal machine itself.

 

by: chiguirePosted on 2003-04-18 at 08:29:51ID: 8354543

you must modify you /etc/hosts.allow file,
and add something like:

ALL: 192.168.


Altough this is risky (because you are allowing all the
hosts with an IP address beginning with 192.168.),
it works for me, because i have a local net firewalled.

The ALL before the first double colon means that it
will allow ANY daemon to access your machine on your
local net

Hope this helps

 

by: CleanupPingPosted on 2003-08-05 at 00:01:25ID: 9077481

Larand:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...