running sshd under AIX 4.3.3 ?
douglas.manton at uk.ibm.com
douglas.manton at uk.ibm.com
Thu May 10 17:52:00 EST 2001
> 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"
More information about the openssh-unix-dev
mailing list