[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] OpenSSL & OpenSSH 2.5.2p2 recipe for RAQ2



I downloaded and used the Qube-Qube2-RaQ-RaQ2- OpenSSH-Client-2.1.1p2.pkg from http://pkg.nl.cobalt.com/

But I found that I was having problems port forwarding and tunnelling. So yesterday (with _much_ help from Jason, a unix friend) I downloaded and built the current versions of OpenSSL 0.9.6a and OpenSSH 2.5.2p2 for my RAQ2. It seems to be working well enough.. I am not good enough to make an install package.. but I here is the recipe for anyone who has a RAQ2 and wants the current OpenSSH and OpenSSL stuff..

I based the sshd inet.d script from the one that was at pkg.nl.cobalt.com. And placed the symlinks in the same rc.d directories as that package put em..

If someone notices that I did anything terribly stupid, pls let me know.. oh.. the OpenSSL compile will take a while (like a half an hour..)

thanx

Elwin
elwin@xxxxxxx

---
Get rid of the current package 2.1.1p2 This is really just the uninstall script from the RPM package

rpm -e openssh-server-2.1.1p2-1
rpm -e openssh-2.1.1p2-1
#Remove entry from installed software
/bin/rm -f /var/lib/cobalt/openssh-server* > /dev/null 2>&1
# Update UI
/usr/admserv/cgi-bin/.cobalt/install/install.cgi < /dev/null > /dev/null 2>&1
# Delete self, how very James Bond
/bin/rm /var/lib/cobalt/uninstallers/openssh-server* > /dev/null 2>&1

---

download the latest openssl and openssh from www.openssl.org and www.openssh.org

---
Build/Make/Install OpenSSL

openssl openssl-0.9.6a:

$ mkdir .log
$ ./config --prefix=/usr/local shared 2>&1 | tee .log/config
$ make 2>&1 | tee .log/make
$ make test 2>&1 | tee .log/make_test
# make install 2>&1 | tee .log/make_install

#vi /etc/man.config
add the following to the MANPATH's
 MANPATH /usr/local/ssl/man

---
Build/Make/Install OpenSSH

openssh openssh-2.5.2p2:
2.3.0p1
$ mkdir .log
$ ./configure 2>&1 | tee .log/configure
$ make 2>&1 | tee .log/make
# make install 2>&1 | tee .log/make_install

---

Copy the following sshd script into /etc/rc.d/init.d/sshd
Omit the ---'s

--- sshd script for init.d
#!/bin/bash

# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd (/usr/local/sbin/sshd)
# config: /usr/local/etc/ssh_host_key
# config: /usr/local/etc/ssh_host_key.pub
# config: /usr/local/etc/sshd_config
# pidfile: /var/run/sshd.pid

# source function library
. /etc/rc.d/init.d/functions

RETVAL=0

case "$1" in
  start)
	echo -n "Starting sshd: "
	if [ ! -f /var/run/sshd.pid ] ; then
	  case "`type -type success`" in
	    function)
/usr/local/sbin/sshd && success "sshd startup" || failure "sshd startup"
	      RETVAL=$?
	    ;;
	    *)
	      /usr/local/sbin/sshd && echo -n "sshd "
	      RETVAL=$?
	    ;;
	  esac
	  [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd
	fi
	echo
	;;
  stop)
	echo -n "Shutting down sshd: "
	if [ -f /var/run/sshd.pid ] ; then
		killproc sshd
	fi
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd
	;;
  restart)
        $0 stop
        $0 start
	RETVAL=$?
        ;;
  status)
        status sshd
	RETVAL=$?
        ;;
  *)
	echo "Usage: sshd {start|stop|restart|status}"
	exit 1
esac

exit $RETVAL

---
#chmod 755 /etc/rc.d/init.d/sshd
---

#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc0.d/K25sshd
#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc1.d/K25sshd
#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc6.d/K25sshd

#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc2.d/S55sshd
#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc3.d/S55sshd
#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc4.d/S55sshd
#ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc5.d/S55sshd

---
You should edit /usr/local/etc/sshd_config (probably should add
a Protocol 2 )