mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 05:22:13 +08:00
14e31ce3e2
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1878 af4574ff-66df-0310-9fd7-8a98e5e911e0
34 lines
1.5 KiB
XML
34 lines
1.5 KiB
XML
<sect2>
|
|
<title>Installation of <application>Open<acronym>SSH</acronym></application></title>
|
|
|
|
<para><application>Open<acronym>SSH</acronym></application> runs as two
|
|
processes when connecting to other
|
|
computers. The first process is a privileged process and controls the
|
|
issuance of privileges as necessary. The second process communicates
|
|
with the network. Additional installation steps are necessary to set up
|
|
the proper environment which are performed by the following
|
|
commands:</para>
|
|
|
|
<screen><userinput><command>mkdir /var/empty &&
|
|
chown root:sys /var/empty &&
|
|
groupadd sshd &&
|
|
useradd -c 'sshd privsep' -d /var/empty -g sshd -s /bin/false sshd</command></userinput></screen>
|
|
|
|
<para><application>OpenSSH</application> is very sensitive to changes in the
|
|
linked <application>OpenSSL</application> libraries. If you recompile
|
|
<application>OpenSSL</application>, <application>OpenSSH</application> may
|
|
fail to startup. An alternative is to link against static <application>OpenSSL</application>
|
|
library. To link against the static library, execute the following command:</para>
|
|
|
|
<screen><userinput><command>sed -i "s:-lcrypto:/usr/lib/libcrypto.a:g" configure</command></userinput></screen>
|
|
|
|
<para>Install <application>Open<acronym>SSH</acronym></application> by running
|
|
the following commands:</para>
|
|
|
|
<screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc/ssh \
|
|
--libexecdir=/usr/sbin --with-md5-passwords &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
|
|
</sect2>
|