OpenSSH on Solaris 8
It took me a while to piece this together. So, I thought I'd increase the likely hood it would show up on a google search by putting it on my high profile web site. Read on for instructions.
If you just try to install it straight you'll ge an error "error: PRNG not seeded." Becuase the /dev/random entropy generator was added with a later patch to Solaris 8. You'll need a patch. Then get ssl and ssh from sunfreeware. Then install with
gunzip openssl-0.9.6g-sol8-sparc-local.gz
pkgadd -d ./openssl-0.9.6g-sol8-sparc-local
gunzip openssh-3.4p1-sol8-sparc-local.gz
pkgadd -d ./ openssh-3.4p1-sol8-sparc-local
You'll then need to add a user sshd and the /var/empty directory to facilitate privilege seperation.
Then start sshd and ssh away. Here is the startup script I wrote /etc/init.d/sshd
#!/bin/sh
SSH_DAEMON=/usr/local/sbin/sshd
[ -f $SSH_DAEMON ] || exit 0
case "$1" in
start)
echo "Starting sshd: "
$SSH_DAEMON
echo "done."
;;
stop)
echo "Shutting down sshd: "
kill `cat /var/run/sshd.pid`
echo "done."
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: sshd {start|stop|restart}"
exit 1
esac
exit 0