Ignore:
Timestamp:
10/26/2014 02:55:55 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
krejzi/svn
Children:
169031f
Parents:
cb9c6940
Message:

More conversion.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd-ng@14740 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 moved

Legend:

Unmodified
Added
Removed
  • postlfs/security/openssh-systemd.xml

    rcb9c6940 r0e389d13  
    8383    <para role="required">
    8484      <xref linkend="openssl"/> or
    85       <ulink url="http://www.libressl.org/">LibreSSL Portable</ulink></para>
     85      <ulink url="http://www.libressl.org/">LibreSSL Portable</ulink>
     86    </para>
    8687
    8788    <bridgehead renderas="sect4">Optional</bridgehead>
     
    302303
    303304    <sect3  id="openssh-init">
    304       <title>Boot Script</title>
    305 
    306       <para>
    307         To start the SSH server at system boot, install the
    308       <filename>/etc/rc.d/init.d/sshd</filename> init script included
    309       in the <xref linkend="bootscripts"/> package.
    310         </para>
     305      <title>Systemd Units</title>
     306
     307      <para>
     308        To start the <command>sshd</command> daemon at boot,
     309        install the systemd units from the <xref linkend="bootscripts"/>
     310        package by running the following command as the
     311        <systemitem class="username">root</systemitem> user:
     312      </para>
    311313
    312314      <indexterm zone="openssh openssh-init">
     
    315317
    316318<screen role="root"><userinput>make install-sshd</userinput></screen>
     319
     320      <note>
     321        <para>
     322          This package comes with two types of units: A service file and a socket file.
     323          The service file will start sshd daemon once at boot and it will keep running until the
     324          system shuts down. The socket file will make systemd listen on sshd port (Default 22, needs
     325          to be edited for anything else) and will start sshd daemon when something tries to connect
     326          to that port and stop the daemon when the connection is terminated. This is
     327          called socket activation.
     328
     329          By default, the first method is used - sshd daemon is started at boot and stopped at shutdown.
     330          If the socket method is desired, you need to run as the
     331          <systemitem class="username">root</systemitem> user:
     332
     333<screen role="root"><userinput>systemctl stop sshd &amp;&amp;
     334systemctl disable sshd &amp;&amp;
     335systemctl enable sshd.socket &amp;&amp;
     336systemctl start sshd.socket</userinput></screen>
     337        </para>
     338      </note>
     339
    317340    </sect3>
    318341  </sect2>
     
    336359        <seg>
    337360          /etc/ssh,
     361          /usr/libexec/openssh,
    338362          /usr/share/doc/openssh-&openssh-version;, and
    339363          /var/lib/sshd
Note: See TracChangeset for help on using the changeset viewer.