Or a script from cron which just checks if sshd is alive and if not 
restarts it:

#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin:
export PATH
PID=`pidof sshd`
if [ -z "$PID" ]; then
/etc/init.d/sshd restart
logger "CHECK SERVICES: Restarting sshd, process not found"
fi

Morten Nilsen wrote:

>what about adding a cronjob to restart sshd every once in a while?
>a much better solution than adding in something as silly as telnet access :)
>
>  
>


_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to