[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh via inetd the Debian way



On Tue, 2006-04-25 at 12:45 -0700, Steve Lamb wrote:
>     Is there some automated method of placing sshd into inetd?  I've attempted
> to dpkg-reconfigure openssh-server to no avail.

Why would one want sshd to run from inetd?

sshd should typically be run as a daemon.

As far as I know, there isn't a debconf way to place it as a inetd
process.

But if you really want it to be run from inetd... it'll be very similar
to this as an entry in /etc/inetd.conf:

        ssh stream tcp nowait root /usr/sbin/tcpd  /usr/sbin/sshd

Please make sure you have priv separation enabled in /etc/ssh/sshd_config

        ie: UsePrivilegeSeparation yes

also in /etc/services ensure you have:

        ssh 22/tcp # SSH Remote Login Protocol
        ssh 22/udp

Also make sure that you touch the file:
        /etc/ssh/sshd_not_to_be_run

so it won't start on bootup spewing errors that something else is
listening on port 22.

Now, since I have not tested this at all... it should really work,
though YMMV. 
-- 
greg, greg@gregfolkert.net

The technology that is 
Stronger, Better, Faster: Linux

Use Debian GNU/Linux, its a bazaar thing

NOTICE: Due to Presidential Executive Orders, the 
National Security Agency may have read this email 
without warning, warrant, or notice, and certainly 
without probable cause. They may do this without 
any judicial or legislative oversight. You have no 
recourse nor protection.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: