The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to have SSHD use tcp_wrappers?

Discussion in 'General Discussion' started by inputsprocket, Feb 9, 2006.

  1. inputsprocket

    inputsprocket Registered

    Joined:
    Sep 22, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I would like to run sshd through tcp_wrappers to take advantage of hosts.allow (in combo with hosts.deny to poll my authlog file and ban any brute force login attempts). However, WHM runs sshd as a standalone daemon.

    I've tried enabling sshd through inetd.conf, which invokes
    sshd -i

    but this just gives the error
    Code:
    Feb  9 19:13:21 hosts sshd[52154]: error: setsockopt SO_KEEPALIVE: Socket operation on non-socket
    Feb  9 19:13:21 hosts sshd[52154]: warning: can't get client address: Socket operation on non-socket
    Feb  9 19:13:36 hosts sshd[52154]: fatal: Timeout before authentication for UNKNOWN
    
    Any ideas?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I found a wealth of hits in Google for openssh tcp wrappers which should set you in the right direction.
     
Loading...

Share This Page