Changeset 0e389d13 for postlfs/security/openssh-systemd.xml
- Timestamp:
- 10/26/2014 02:55:55 PM (10 years ago)
- Branches:
- krejzi/svn
- Children:
- 169031f
- Parents:
- cb9c6940
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
postlfs/security/openssh-systemd.xml
rcb9c6940 r0e389d13 83 83 <para role="required"> 84 84 <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> 86 87 87 88 <bridgehead renderas="sect4">Optional</bridgehead> … … 302 303 303 304 <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> 311 313 312 314 <indexterm zone="openssh openssh-init"> … … 315 317 316 318 <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 && 334 systemctl disable sshd && 335 systemctl enable sshd.socket && 336 systemctl start sshd.socket</userinput></screen> 337 </para> 338 </note> 339 317 340 </sect3> 318 341 </sect2> … … 336 359 <seg> 337 360 /etc/ssh, 361 /usr/libexec/openssh, 338 362 /usr/share/doc/openssh-&openssh-version;, and 339 363 /var/lib/sshd
Note:
See TracChangeset
for help on using the changeset viewer.