2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-09-24 06:37:29 +08:00
|
|
|
<title>Installation of <application>Open<acronym>SSH</acronym></application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-24 06:37:29 +08:00
|
|
|
<para><application>Open<acronym>SSH</acronym></application> runs as two
|
|
|
|
processes when connecting to other
|
2003-10-04 00:43:11 +08:00
|
|
|
computers. The first process is a privileged process and controls the
|
2002-07-08 04:28:42 +08:00
|
|
|
issuance of privileges as necessary. The second process communicates
|
|
|
|
with the network. Additional installation steps are necessary to set up
|
2002-09-19 08:26:49 +08:00
|
|
|
the proper environment which are performed by the following
|
2002-07-08 04:28:42 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2003-09-17 23:38:21 +08:00
|
|
|
<screen><userinput><command>mkdir /var/empty &&
|
2002-07-08 04:28:42 +08:00
|
|
|
chown root:sys /var/empty &&
|
|
|
|
groupadd sshd &&
|
2003-09-17 23:38:21 +08:00
|
|
|
useradd -c 'sshd privsep' -d /var/empty -g sshd -s /bin/false sshd</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-02-02 04:16:52 +08:00
|
|
|
<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
|
2004-03-11 09:17:53 +08:00
|
|
|
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>
|
2004-02-02 04:16:52 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>sed -i "s:-lcrypto:/usr/lib/libcrypto.a:g" configure</command></userinput></screen>
|
|
|
|
|
2003-09-24 06:37:29 +08:00
|
|
|
<para>Install <application>Open<acronym>SSH</acronym></application> by running
|
|
|
|
the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-17 23:38:21 +08:00
|
|
|
<screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc/ssh \
|
2003-11-18 07:20:24 +08:00
|
|
|
--libexecdir=/usr/sbin --with-md5-passwords &&
|
2002-07-08 04:28:42 +08:00
|
|
|
make &&
|
2003-11-18 07:20:24 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect2>
|