LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2014, 02:43 PM   #1
ali.abry
Member
 
Registered: Feb 2013
Posts: 74

Rep: Reputation: Disabled
problem in using sshd with xinetd


Hi everyone
tried on my Debian 7 to make ssh request check by xinetd , so i added a file named "ssh" in /etc/xinetd.d which contain these :
Code:
service ssh
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/sshd
        server_args     = -i
        per_source      = UNLIMITED
        log_on_failure  = USERID HOST
        banner          = /etc/banner.inetd.connection.txt
        banner_success  = /etc/banner.inetd.welcome.txt
        banner_fail     = /etc/banner.inetd.takeahike.txt

        # access_times    = 08:00-16:25
        # log_on_success  = PID HOST DURATION TRAFFIC EXIT
        # instances       = 10
        # nice            = 10
        #bind            = 127.0.0.1
        # only_from       = 127.0.0.1
        # no_access       = 172.16.95.0/24
        # no_access       += 172.16.95.0/24
}
the problem is that it's not working and when i run netstat command isee that port 22 is steel listening with sshd service not xinetd !! any help is really appreciated

Code:
root@debian:~#  netstat -nap | grep 22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2723/sshd
 
Old 04-18-2014, 05:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Did you kill sshd before restarting Xinetd?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to install crond,sshd,named,xinetd,ypbind and dhcpd in RHEL 12 ITRookie1 Fedora 6 07-20-2010 06:51 PM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
sshd doesnt work with tcp wrapper(xinetd)... seagley Linux - Security 4 12-24-2005 09:05 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration