Sorry for my poor English.

ptah <[EMAIL PROTECTED]> writes:

> on my FreeBSD machine in my /etc/inetd.conf it looks like this:
> 
> ssh  stream  tcp   nowait  root    /usr/local/sbin/sshd2   sshd2 -i
> 
> however when I run inetd, sshd2 does not start as a daemon.  I am 
> starting it in inetd because of the TCP wrappers issue,  I
> couldn't get the wrappers to work any other way..  anyway, what
> am I doing wrong here?   

/etc/inetd.conf is a configuration file for inetd, not for a daemon 
that is started at system boot time. If you would like to start sshd 
as a daemon, you should change a configuration file for a local daemon,
/etc/rc.local or so.

I've never used ssh2, but I think configure script has --with-libwrap 
option as same as ssh1. Please try to re-configure and re-build ssh2,
and change the local daemon configuration file.

Here is the sample for openssh on my NetBSD box.

if [ ! -f /etc/ssh_host_key ]
then
 /usr/pkg/bin/ssh-keygen -f /etc/ssh_host_key -N ''
fi
if [ -x /usr/pkg/sbin/sshd -a -f /etc/sshd_config ]
then
 /usr/pkg/sbin/sshd
 echo -n ' sshd'
fi
exit 0

-- 
Yuji Yamano

Reply via email to