On 05/23/2013 11:10 AM, Fernando wrote:
This confirms what is in the book: Command Explanations
--sysconfdir=/etc/ssh: This prevents the configuration files from
being installed in /usr/etc.
test.sh
#!/bin/bash
tar xf openssh-6.2p1.tar.gz
cd openssh-6.2p1
mkdir test
./configure --prefix=/usr \
--sysconfdir=/etc/ssh \
--datadir=/usr/share/sshd \
--with-md5-passwords \
--with-privsep-path=/var/lib/sshd
make -j6
make DESTDIR=test install
./test.sh |& tee test.log
cat test.log
....
[putolin]
/usr/bin/install -c -m 644 ssh-pkcs11-helper.8.out
test/usr/share/man/man8/ssh-pkcs11-helper.8
rm -f test/usr/bin/slogin
ln -s ./ssh test/usr/bin/slogin
rm -f test/usr/share/man/man1/slogin.1
ln -s ./ssh.1 test/usr/share/man/man1/slogin.1
if [ ! -d test/etc/ssh ]; then \
./mkinstalldirs test/etc/ssh; \
fi
mkdir test/etc
mkdir test/etc/ssh
test/usr/sbin/sshd -t -f test/etc/ssh/sshd_config
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page