I have just installed openssh on my Sun Cobalt Qube, running Linux. It is a Red Hat variant. The shell interpreter for the rc script forces /sbin/sh. This seems to be defined in opensshd.init.in. This shell does not exist on this implementation of Linux. I have written about this in (much more) detail at http://blogs.sun.com/roller/page/DaveLevy/20060104. NB This would seem to me to be a common problem but I havn't found any references in the archives. A simple check to see if there is /sbin/sh could be made and the first line of the script amended dependent on the result of the test. The copy statement, moving the generated script from the build directory to the installed directory may require to be managed by a similar test. The blog article above has code examples which I wrote and you are free to use.
Created attachment 1050 [details] Have configure check for the existence of /sbin/sh Getting configure to check for this is easy provided you're doing native builds and not cross-compiling.
The openssh.init startup script was never intended to work on all platforms. If you Cobalt Qube is a Red Hat variant, you may be better off with contrib/redhat/sshd.init That said, if Darren wants to commit the patch, It's OK by me.
Patch applied, thanks.
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.