On Tue, 11 Jan 2000, George Dimitoglou wrote:

GD> 'mother' machine. I would think I would need to recompile SSH on the
GD> child host (to generate keys etc) but I dont seem to be certain on how
GD> to do it.

You shouldn't have to recompile SSH unless the platform is different
(Solaris x86 and SPARC, Linux and HP/UX, etc.)

I put ssh and related files in a directory on a main server which is then
exported as /usr/local on all other hosts (this sounds like what you do
too).  I then have to go to each machine I want running SSH and do a
simple little install -- you can either do "make host-install" from the
SSH source directory, or I just use a simple little script:

#!/bin/sh
umask 022
if test '!' -f /etc/ssh_host_key; then \
    umask 022; echo "Generating 1024 bit host key."; \
    /usr/local/bin/ssh-keygen -b 1024 -f /etc/ssh_host_key -N ''; \
  fi
if test '!' -f /etc/ssh_config; then \
  /usr/local/bin/install -c -m 644 -m 0644 ./host_config.sample \
    /etc/ssh_config; fi
if test '!' -f /etc/sshd_config; then \
  /usr/local/bin/install -c -m 644 -m 0644 ./server_config.sample \
    /etc/sshd_config; fi

if test '!' -f /etc/init.d/sshd; then \
    cp ./sshd /etc/init.d; \
    rm -f /etc/rc2.d/S96sshd; \
    ln -s /etc/init.d/sshd /etc/rc2.d/S96sshd; \
fi

if test '!' -d /.ssh; then \
        mkdir -m 755 /.ssh; \
fi
rm -f /.ssh/authorized_keys
/usr/local/bin/install -c -m 644 -m 0644 ./authorized_keys \
        /.ssh/authorized_keys



Which is basically a "make host-install", but also adds in the
authorized_keys file for root access, and copies the init and config files
from the current directory.

-- 
Randomly Generated Tagline:
"Take my Worf......please." - Data

Reply via email to