2004-06-13 13:38:30 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 13:38:30 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY openssh-download-http "http://sunsite.ualberta.ca/pub/OpenBSD/OpenSSH/portable/openssh-&openssh-version;.tar.gz">
|
|
|
|
<!ENTITY openssh-download-ftp "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-&openssh-version;.tar.gz">
|
2005-02-12 15:50:52 +08:00
|
|
|
<!ENTITY openssh-md5sum "8e1774d0b52aff08f817f3987442a16e">
|
2004-10-16 03:05:18 +08:00
|
|
|
<!ENTITY openssh-size "854 KB">
|
|
|
|
<!ENTITY openssh-buildsize "13.3 MB">
|
|
|
|
<!ENTITY openssh-time "0.40 SBU">
|
2004-06-13 13:38:30 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-24 06:37:29 +08:00
|
|
|
<sect1 id="openssh" xreflabel="OpenSSH-&openssh-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-05-07 10:32:10 +08:00
|
|
|
<?dbhtml filename="openssh.html"?>
|
2003-09-24 09:20:44 +08:00
|
|
|
<title>Open<acronym>SSH</acronym>-&openssh-version;</title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-06-13 13:38:30 +08:00
|
|
|
<sect2>
|
2004-10-16 03:05:18 +08:00
|
|
|
<title>Introduction to
|
|
|
|
<application>Open<acronym>SSH</acronym></application></title>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<para>The <application>Open<acronym>SSH</acronym></application> package
|
2004-10-16 03:05:18 +08:00
|
|
|
contains <command>ssh</command> clients and the <command>sshd</command> daemon.
|
|
|
|
This is useful for encrypting authentication and subsequent traffic over a
|
|
|
|
network.</para>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
2005-02-12 15:50:52 +08:00
|
|
|
<listitem><para>Download (HTTP):
|
|
|
|
<ulink url="&openssh-download-http;"/></para></listitem>
|
|
|
|
<listitem><para>Download (FTP):
|
|
|
|
<ulink url="&openssh-download-ftp;"/></para></listitem>
|
|
|
|
<listitem><para>Download MD5 sum: &openssh-md5sum;</para></listitem>
|
2004-06-13 13:38:30 +08:00
|
|
|
<listitem><para>Download size: &openssh-size;</para></listitem>
|
2005-02-12 15:50:52 +08:00
|
|
|
<listitem><para>Estimated disk space required:
|
|
|
|
&openssh-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&openssh-time;</para></listitem></itemizedlist>
|
2004-06-13 13:38:30 +08:00
|
|
|
</sect3>
|
|
|
|
|
2004-10-16 03:05:18 +08:00
|
|
|
<sect3><title><application>Open<acronym>SSH</acronym></application>
|
|
|
|
dependencies</title>
|
2004-06-13 13:38:30 +08:00
|
|
|
<sect4><title>Required</title>
|
2005-01-26 00:02:00 +08:00
|
|
|
<para><xref linkend="openssl"/></para>
|
2004-10-16 03:05:18 +08:00
|
|
|
</sect4>
|
2005-02-12 15:50:52 +08:00
|
|
|
|
2004-06-13 13:38:30 +08:00
|
|
|
<sect4><title>Optional</title>
|
2004-10-16 03:05:18 +08:00
|
|
|
<para><xref linkend="Linux_PAM"/>,
|
|
|
|
<xref linkend="tcpwrappers"/>,
|
|
|
|
X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
|
|
|
<xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
|
|
|
|
<xref linkend="j2sdk"/>,
|
|
|
|
<xref linkend="net-tools"/> and
|
2005-02-12 15:50:52 +08:00
|
|
|
<ulink url="http://www.opensc.org/">OpenSC</ulink></para>
|
|
|
|
</sect4>
|
2004-06-13 13:38:30 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
2004-10-16 03:05:18 +08:00
|
|
|
<title>Installation of
|
|
|
|
<application>Open<acronym>SSH</acronym></application></title>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<para><application>Open<acronym>SSH</acronym></application> runs as two
|
2004-10-16 03:05:18 +08:00
|
|
|
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>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<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
|
2004-10-16 03:05:18 +08:00
|
|
|
fail to startup. An alternative is to link against the static
|
|
|
|
<application>OpenSSL</application> library. To link against the static
|
|
|
|
library, execute the following command:</para>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
|
|
|
<para><parameter>--sysconfdir=/etc/ssh</parameter>: This prevents the
|
2004-10-16 03:05:18 +08:00
|
|
|
configuration files from going to
|
|
|
|
<filename class="directory">/usr/etc</filename>.</para>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<para><parameter>--with-md5-passwords</parameter>: This is required
|
|
|
|
if you made the changes recommended by the shadowpasswd_plus
|
|
|
|
<acronym>LFS</acronym> hint on
|
|
|
|
your <acronym>SSH</acronym> server when you installed the Shadow Password
|
|
|
|
Suite or if you access a <acronym>SSH</acronym> server that authenticates by
|
|
|
|
user passwords encrypted with md5. </para>
|
|
|
|
|
|
|
|
<para><parameter>--libexecdir=/usr/sbin</parameter>:
|
2004-10-16 03:05:18 +08:00
|
|
|
<application>Open<acronym>SSH</acronym></application> installs programs called
|
|
|
|
by programs in <filename class="directory">/usr/libexec</filename>.
|
2004-06-13 13:38:30 +08:00
|
|
|
<command>sftp-server</command> is a <command>sshd</command>
|
|
|
|
utility and <command>ssh-askpass</command> is a <command>ssh-add</command>
|
2004-10-16 03:05:18 +08:00
|
|
|
utility that is installed as a link to <command>X11-ssh-askpass</command>.
|
2004-06-13 13:38:30 +08:00
|
|
|
Both of these should go in <filename class="directory">/usr/sbin</filename>
|
|
|
|
not <filename class="directory">/usr/libexec</filename>.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Configuring <application>Open<acronym>SSH</acronym></application></title>
|
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
|
2004-10-16 03:05:18 +08:00
|
|
|
<para><filename>/etc/ssh/ssh_config</filename> and
|
2004-06-13 13:38:30 +08:00
|
|
|
<filename>/etc/ssh/sshd_config </filename></para>
|
2004-10-16 03:05:18 +08:00
|
|
|
|
|
|
|
<para>There are no required changes to either of these files. However,
|
2004-06-13 13:38:30 +08:00
|
|
|
you may wish to view them to make changes for appropriate security to
|
2004-11-28 18:39:45 +08:00
|
|
|
your system. One recomended change is that you disable root login via
|
|
|
|
ssh. Execute the following command to disable root login via ssh:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>echo "PermitRootLogin no" >> /etc/ssh/sshd_config</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Additional configuration information can be found in the man pages for
|
2004-10-16 03:05:18 +08:00
|
|
|
<command>sshd</command>, <command>ssh</command> and
|
|
|
|
<command>ssh-agent</command></para>
|
2004-06-13 13:38:30 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>sshd init.d script</title>
|
|
|
|
|
2004-10-16 03:05:18 +08:00
|
|
|
<para>To start the <acronym>SSH</acronym> server at system boot, install the
|
|
|
|
<filename>/etc/rc.d/init.d/sshd</filename> init script included in the
|
|
|
|
<xref linkend="intro-important-bootscripts"/> package.</para>
|
|
|
|
|
2004-06-13 13:38:30 +08:00
|
|
|
<screen><userinput><command>make install-sshd</command></userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
2004-10-16 03:05:18 +08:00
|
|
|
<para>The <application>Open<acronym>SSH</acronym></application> package
|
|
|
|
contains <command>ssh</command>, <command>sshd</command>,
|
|
|
|
<command>ssh-agent</command>, <command>ssh-add</command>,
|
|
|
|
<command>sftp</command>, <command>scp</command>,
|
|
|
|
<command>ssh-keygen</command>, <command>sftp-server</command> and
|
2004-06-13 13:38:30 +08:00
|
|
|
<command>ssh-keyscan</command>.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
|
|
|
<sect3><title>ssh</title>
|
2004-10-16 03:05:18 +08:00
|
|
|
<para>The basic <command>rlogin</command>/<command>rsh</command>-like
|
|
|
|
client program.</para></sect3>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<sect3><title>sshd</title>
|
2004-10-16 03:05:18 +08:00
|
|
|
<para>The daemon that listens for <command>ssh</command> login
|
|
|
|
requests.</para></sect3>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<sect3><title>ssh-agent</title>
|
|
|
|
<para>An authentication agent that can store private keys.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>ssh-add</title>
|
|
|
|
<para>Tool which adds keys to the <command>ssh-agent</command>.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>sftp</title>
|
|
|
|
<para><acronym>FTP</acronym>-like program that works over
|
|
|
|
<acronym>SSH</acronym>1 and <acronym>SSH</acronym>2 protocols.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>scp</title>
|
2004-10-16 03:05:18 +08:00
|
|
|
<para>File copy program that acts like <command>rcp</command>.</para></sect3>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
<sect3><title>ssh-keygen</title>
|
|
|
|
<para>Key generation tool.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>sftp-server</title>
|
|
|
|
<para><acronym>SFTP</acronym> server subsystem.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>ssh-keyscan</title>
|
2004-10-16 03:05:18 +08:00
|
|
|
<para>Utility for gathering public host keys from a number of
|
|
|
|
hosts.</para></sect3>
|
2004-06-13 13:38:30 +08:00
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|