OpenSSL
To build ssh, we first need openssl. I set PREFIX to a separate directory, to be able to run make install with full control over which files is included in the distribution.
mkdir /home/build/firewall/dist PREFIX=/home/build/firewall/dist cd openssl-1.0.0c/ ./config --prefix=$PREFIX make -j 3 make install
OpenSSH is statically linked with OpenSSL, so no openssl-files are actually needed on the firewall. The openssl client utilities are meant for manipulating certificates or testing ssl connections. This functionality will not be needed on the firewall.
OpenSSH
Openssh built in a similar fashion:cd ../openssh-5.6p1/ ./configure --help ./configure --with-ssl-dir=$PREFIX --prefix=$PREFIX --with-privsep-user=sshd --with-4in6 ./configure --help make -j 3 make installFrom the dist-directory I made a selective installation of just some utilities:
- ssh
- ssh-add
- ssh-agent
- ssh-keygen
- ssh-keyscan
::respawn:/usr/sbin/sshd -f /etc/ssh/sshd_config
Ingen kommentarer:
Legg inn en kommentar