ssh,
During the configure process, I got a little note that said "Irix
untested - please report your findings" or something like that. Well,
ok. Here's my findings.
I got ssh, scp, and sshd all compiled, installed and running properly
on an SGI Indy running IRIX 6.5. Below are the steps taken to get
things running.
Best regards,
Marc Compere
===========================================
===========================================
These are the steps taken to compile and install OpenSSH for IRIX 6.5.
The machine this was done on had a symbolic link pointing from
/usr/local to /disk5/usr/local
so all the references to /disk5/usr/local were not really necessary.
(1) - Compiled and installed zlib from libz 1.1.3 fw_libz-1.1.3.tardist
from:
http://freeware.sgi.com/index-by-alpha.html
using SGI Software Manager.
This installed libz in:
/usr/freeware/lib32
(2) - compiled openssl-0.9.5a from http://www.openssl.org/source/ with:
./Configure --prefix=/disk5/usr/local/openssl
--openssldir=/disk5/usr/local/openssl irix-cc
make
make test
(switch to root user)
make install
( compilation with ./Configure irix-mips3-gcc failed; )
( gcc & cc are not entirely binary compatible )
(3) - compiled and installed egd, entropy generator daemon, from:
http://www.lothar.com/tech/crypto/
with:
cd egd-0.8
perl Makefile.PL
make
make test
(switch to root user)
make install
Not sure if installing egd was necessary.
A quote from the openssh-2.1.1p1 INSTALL file:
"The Entropy Gathering Daemon (EGD) is supported if you have a
system
which lacks /dev/random and don't want to use OpenSSH's internal
entropy
collection."
(4) - changed system startup procedure to start egd.pl at system startup
with:
(created and edited /etc/init.d/entropy from Matlab's
/etc/init.d/lm)
(see below for contents of /etc/init.d/entropy)
cd /etc/rc2.d
ln -s ../init.d/entropy S22entropy
(5) - compiled tcp_wrappers_7.6-ipv6 from:
ftp://ftp.porcupine.org/pub/security/index.html#software
Chose the "advanced installation option" and copied:
- tcpdchk, safe_finger, try-from, tcpdmatch, tcpd into /usr/etc
- libwrap.a into /disk5/usr/local/lib
- tcpd.h into /disk5/usr/local/include
(/etc/hosts.allow and /etc/hosts.deny were already setup)
(6) - compiled ssh (openssh-2.1.1p1 from
http://www.openssh.com/portable.html) with:
./configure -prefix=/disk5/usr/local --with-tcp-wrappers
--with-ssl-dir=/disk5/usr/local/openssl --with-egd-pool=/etc/entropy
--with-libs='-L/usr/freeware/lib32 -L/disk5/usr/local/lib'
--with-cflags='-I/usr/freeware/include'
( the --with-libs='-L/usr/freeware/lib32 ... ' option was
required for configure to find libz.a )
( the ' ... -L/disk5/usr/local/lib' option was required for
configure to find libwrap.a )
( the --with-cflags='-I/usr/freeware/include' option was so make
could find zlib.h )
make
make install
make host-key
(7) - created /etc/init.d/sshd modified from /etc/init.d/entropy and
executed:
cd /etc/rc2.d
ln -s ../init.d/sshd S61sshd
The contents of /etc/init.d/sshd are included below.
(8) - Curious error. Fixed the misplaced manpage locations with:
cp /disk5/usr/local/man/1/* /disk5/usr/local/man/man1
cp /disk5/usr/local/man/8/* /disk5/usr/local/man/man8
contents of /etc/init.d/entropy:
------------------------------------------------------------
#! /bin/sh
#
# Start the entropy generating daemon, egd.pl.
# This is necessary to run ssh on IRIX because
# IRIX does not have a /dev/random or /dev/urandom.
# These are, for Linux, kernel-based random number
# generators.
#
# This version of egd (egd-0.8) was found at:
# http://www.lothar.com/tech/crypto/
# and installed as per the instructions from:
# http://www.openssh.com/install.html
# during the installation of Openssh.
#
# See more about the OpenSSH installation process
# for this machine at:
# /disk5/usr/people/sgi006/text-files/Canova-security-installing-ssh.txt
#
# egd-0.8 installed and
# this file (/etc/init.d/entropy) modified from /etc/init.d/lm
# by Marc Compere
# 30 June 2000
#
#
case "$1" in
'start')
if [ -f /usr/freeware/bin/egd.pl ]; then
echo 'Starting entropy generating daemon:
/usr/freeware/bin/egd.pl /etc/entropy' && /usr/freeware/bin/egd.pl
/etc/entropy
fi
;;
'stop')
killall egd.pl
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
------------------------------------------------------------
contents of /etc/init.d/sshd:
------------------------------------------------------------
#! /bin/sh
#
# Start the Opensource Secure Shell daemon, sshd.
# This sshd comes from openssh-2.1.1p1 at:
# http://www.openssh.com
#
# See more about the OpenSSH installation process
# for this machine at:
# /disk5/usr/people/sgi006/text-files/Canova-security-installing-ssh.txt
#
# openssh-2.1.1p1 installed and
# this file (/etc/init.d/sshd) modified from /etc/init.d/entropy
# by Marc Compere
# 05 July 2000
#
#
case "$1" in
'start')
if [ -f /disk5/usr/local/sbin/sshd ]; then
echo 'Starting secure shell daemon:
/disk5/usr/local/sbin/sshd' && /disk5/usr/local/sbin/sshd
fi
;;
'stop')
killall sshd
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
------------------------------------------------------------
===========================================
===========================================
--
_________________________________________________
Marc Compere, The University of Texas at Austin
[EMAIL PROTECTED], (512)471-7347, <><
http://nerdlab.me.utexas.edu/~compere
_________________________________________________