running sshd under AIX 4.3.3 ?

Dannis 't Hart dchart at nets.tref.nl
Thu May 10 21:05:19 EST 2001


> -----Original Message-----
> From: douglas.manton at uk.ibm.com [mailto:douglas.manton at uk.ibm.com]
> Sent: Thursday, May 10, 2001 09:52
> To: openssh-unix-dev at mindrot.org
> Cc: Jason Fortezzo; Dannis 't Hart
> Subject: Re: running sshd under AIX 4.3.3 ?
>
> > mkssys -s sshd -p /usr/local/sbin/sshd -a '-D ' -u 0 -S -n 15 -f 9 -R -G
> local
>
> > Note the -D switch I pass to sshd.
>
> Yup.  Previously I had patched the sshd source to prevent it from forking
> (a prerequisite of the AIX SRC).
>
> I also wanted the functionality to log if sshd had fallen over.  Using the
> "-R" switch on mkssys restarts it, but unless you monitor the PID then you
> have no record.
>
> I have managed this using the "mknotify" method.  You simply run the above
> mkssys without the "-R" and then:
>
>     mknotify -n sshd -m /usr/bin/sysfailed
>
> /usr/bin/sysfailed is a script along the lines of:
>
>     #!/bin/sh
>     logger -pdaemon.err -t srcmstr "$1 has fallen over and is being
> restarted"
>     startsrc -s $1
>     CODE=$?
>     if [ "$CODE" != "0" ]
>     then
>         logger -pdaemon.crit -t srcmstr "$1 could not be restarted!"
>         stopsrc -s $1
>     else
>         logger -pdaemon.err -t srcmstr "$1 restarted"
>     fi
>
> This logs the failure and restarts sshd.
>
> Now to convince the AIX developers to send a "kill -HUP" to subsystems
> controlled through signals using the refresh command!
>
> Best wishes,
> --------------------------------------------------------
>   Doug Manton, AT&T EMEA Commercial Security Solutions
>
>                 E:  demanton at att.com
> --------------------------------------------------------
> "If privacy is outlawed, only outlaws will have privacy"
>

Thanx! It works as a subsystem now :-)

Also, thanks for suggesting logging method, I'm doing 'man mknotify' right
now...

Dannis.




More information about the openssh-unix-dev mailing list