[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] SSH Server Problem
- Subject: [cobalt-users] SSH Server Problem
- From: "Christopher Cantrell" <cantrell@xxxxxxxxx>
- Date: Sun Mar 5 07:47:24 2000
Sorry for not being knowledgeable on shell programming but I am having an
issue with getting SSH to start automatically during boot.
I have installed SSH 2.0.13 on my RAQ3 downloaded from www.ssh.fi. It looks
like everything is working correctly but when I run the
/etc/rc.d/init.d/sshd with the start param, I get
Starting sshd: sshd./sshd: sshd: command not found
I got the script from Cobalt.
I can start it from a command line like > sshd and check the status from
sshd status.
Any suggestions or help is very much appreciated
#!/bin/sh
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -x /usr/local/sbin/sshd ] || exit 0
# See how we were called.
case "$1" in
start)
echo -n "Starting sshd: "
daemon sshd
echo
touch /var/lock/subsys/sshd
;;
stop)
echo -n "Shutting down sshd: "
killproc sshd
echo
rm -f /var/lock/subsys/sshd
;;
status)
status sshd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: sshd {start|stop|restart|status}"
exit 1
esac
exit 0