[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[3a373116] | 7 | <!ENTITY openssh-download-http
|
---|
[c6b192c] | 8 | "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-&openssh-version;.tar.gz">
|
---|
[3a373116] | 9 | <!ENTITY openssh-download-ftp
|
---|
[a93f2f1] | 10 | " "> <!-- at the moment, unable to connect via ftp: ken
|
---|
| 11 | "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-&openssh-version;.tar.gz"> -->
|
---|
[bed8f3ef] | 12 | <!ENTITY openssh-md5sum "&openssh-md5sum;">
|
---|
[2d0c6b1] | 13 | <!ENTITY openssh-size "1.7 MB">
|
---|
[e628e070] | 14 | <!ENTITY openssh-buildsize "45 MB (add 22 MB for tests)">
|
---|
[81a0948] | 15 | <!ENTITY openssh-time "0.2 SBU (Using parallelism=4;
|
---|
[075cb1e] | 16 | running the tests takes about 20 minutes,
|
---|
[6c6990c] | 17 | irrespective of processor speed)">
|
---|
[0931098] | 18 | ]>
|
---|
| 19 |
|
---|
[e628e070] | 20 | <!-- make check: real 18m13.005s; 9.2p1 3 Feb 2023 -->
|
---|
| 21 | <!-- make check: real 18m08.654s; 9.3p1 17 Mar 2023 -->
|
---|
[075cb1e] | 22 |
|
---|
[1708d1e9] | 23 | <sect1 id="openssh" xreflabel="OpenSSH-&openssh-version;">
|
---|
[e4e0d060] | 24 | <?dbhtml filename="openssh.html"?>
|
---|
| 25 |
|
---|
| 26 | <title>OpenSSH-&openssh-version;</title>
|
---|
| 27 |
|
---|
[0978e07] | 28 | <indexterm zone="openssh">
|
---|
| 29 | <primary sortas="a-OpenSSH">OpenSSH</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to OpenSSH</title>
|
---|
| 34 |
|
---|
[8ba08b56] | 35 | <para>
|
---|
| 36 | The <application>OpenSSH</application> package contains
|
---|
[45db70f] | 37 | <command>ssh</command> clients and the <command>sshd</command> daemon.
|
---|
| 38 | This is useful for encrypting authentication and subsequent traffic over
|
---|
| 39 | a network. The <command>ssh</command> and <command>scp</command> commands
|
---|
| 40 | are secure implementations of <command>telnet</command> and
|
---|
| 41 | <command>rcp</command> respectively.
|
---|
[8ba08b56] | 42 | </para>
|
---|
[6b5cc24] | 43 |
|
---|
[ed345e7] | 44 | &lfs120_checked;
|
---|
[6b5cc24] | 45 |
|
---|
[e4e0d060] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[3a373116] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&openssh-download-http;"/>
|
---|
| 51 | </para>
|
---|
[e4e0d060] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[3a373116] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&openssh-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[e4e0d060] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[3a373116] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &openssh-md5sum;
|
---|
| 61 | </para>
|
---|
[e4e0d060] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[3a373116] | 64 | <para>
|
---|
| 65 | Download size: &openssh-size;
|
---|
| 66 | </para>
|
---|
[e4e0d060] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[3a373116] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &openssh-buildsize;
|
---|
| 71 | </para>
|
---|
[e4e0d060] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[3a373116] | 74 | <para>
|
---|
| 75 | Estimated build time: &openssh-time;
|
---|
| 76 | </para>
|
---|
[e4e0d060] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
[479274d] | 79 | <!--
|
---|
[3806235] | 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>
|
---|
| 84 | Required patch:
|
---|
[f2cb3164] | 85 | <ulink url="&patch-root;/openssh-&openssh-version;-glibc_2.31_fix-1.patch"/>
|
---|
[3806235] | 86 | </para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
[479274d] | 89 | -->
|
---|
[e4e0d060] | 90 | <bridgehead renderas="sect3">OpenSSH Dependencies</bridgehead>
|
---|
[31427bc] | 91 |
|
---|
[e4e0d060] | 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[3a373116] | 93 | <para role="optional">
|
---|
[d38746e] | 94 | <xref linkend="gdb"/> (for tests),
|
---|
[0391649] | 95 | <xref linkend="linux-pam"/> (PAM configuration files from
|
---|
| 96 | <xref linkend="shadow"/> are used to create openssh ones),
|
---|
[6ae11da] | 97 | <xref linkend="xorg7-app"/> (or
|
---|
| 98 | <xref linkend='xorg-env' role='nodep'/>, see Command Explanations),
|
---|
[3a373116] | 99 | <xref linkend="mitkrb"/>,
|
---|
[3b88aed] | 100 | <xref linkend="which"/> (for tests),
|
---|
[cd29bc9] | 101 | <ulink url="https://www.thrysoee.dk/editline/">libedit</ulink>,
|
---|
| 102 | <ulink url="https://www.libressl.org/">LibreSSL Portable</ulink>,
|
---|
[6c6990c] | 103 | <ulink url="https://github.com/OpenSC/OpenSC/wiki">OpenSC</ulink>, and
|
---|
[3a373116] | 104 | <ulink url="http://www.citi.umich.edu/projects/smartcard/sectok.html">libsectok</ulink>
|
---|
| 105 | </para>
|
---|
[9561d7e] | 106 |
|
---|
[409e2e7] | 107 | <bridgehead renderas="sect4">Optional Runtime (Used only to gather entropy)</bridgehead>
|
---|
[3a373116] | 108 | <para role="optional">
|
---|
[b47d633] | 109 | <!--<xref role="runtime" linkend="openjdk"/>, Not seen in 8.8p1 -->
|
---|
[96e9478] | 110 | <xref role="runtime" linkend="net-tools"/>, and
|
---|
| 111 | <xref role="runtime" linkend="sysstat"/>
|
---|
[3a373116] | 112 | </para>
|
---|
[e4e0d060] | 113 |
|
---|
[3a373116] | 114 | <para condition="html" role="usernotes">
|
---|
[42ddc30] | 115 | Editor Notes: <ulink url="&blfs-wiki;/OpenSSH"/>
|
---|
[3a373116] | 116 | </para>
|
---|
[e4e0d060] | 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="installation">
|
---|
| 120 | <title>Installation of OpenSSH</title>
|
---|
| 121 |
|
---|
[3a373116] | 122 | <para>
|
---|
| 123 | <application>OpenSSH</application> runs as two processes when connecting
|
---|
| 124 | to other computers. The first process is a privileged process and controls
|
---|
| 125 | the issuance of privileges as necessary. The second process communicates
|
---|
| 126 | with the network. Additional installation steps are necessary to set up
|
---|
| 127 | the proper environment, which are performed by issuing the following
|
---|
| 128 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 129 | </para>
|
---|
[e4e0d060] | 130 |
|
---|
[f9f9172] | 131 | <screen role="root"><userinput>install -v -g sys -m700 -d /var/lib/sshd &&
|
---|
[59382ab] | 132 |
|
---|
[6c6990c] | 133 | groupadd -g 50 sshd &&
|
---|
| 134 | useradd -c 'sshd PrivSep' \
|
---|
| 135 | -d /var/lib/sshd \
|
---|
| 136 | -g sshd \
|
---|
| 137 | -s /bin/false \
|
---|
| 138 | -u 50 sshd</userinput></screen>
|
---|
[479274d] | 139 | <!--
|
---|
[3806235] | 140 | <para>
|
---|
| 141 | Apply a patch to allow OpenSSH to build and function with
|
---|
[f2cb3164] | 142 | <application>Glibc-2.31</application> and later:
|
---|
[3806235] | 143 | </para>
|
---|
| 144 |
|
---|
[f2cb3164] | 145 | <screen><userinput remap="pre">patch -Np1 -i ../openssh-&openssh-version;-glibc_2.31_fix-1.patch</userinput></screen>
|
---|
[8558044] | 146 | -->
|
---|
[5d2965c] | 147 |
|
---|
| 148 | <!-- Applied in 8.5p1
|
---|
[66d223b] | 149 | <para>
|
---|
| 150 | First, adapt <application>ssh-copy-id</application> to changes
|
---|
| 151 | in bash-5.1:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <screen><userinput remap="pre">sed -e '/INSTALLKEYS_SH/s/)//' -e '260a\ )' -i contrib/ssh-copy-id</userinput></screen>
|
---|
| 155 |
|
---|
[79eec369] | 156 | <para>
|
---|
| 157 | Next, fix an issue on platforms other than x86_64:
|
---|
| 158 | </para>
|
---|
| 159 | <screen><userinput remap="pre">if [ "$(uname -m)" != "x86_64" ]; then
|
---|
| 160 | l1="#ifdef __NR_pselect6_time64"
|
---|
| 161 | l2=" SC_ALLOW(__NR_pselect6_time64),"
|
---|
| 162 | l3="#endif"
|
---|
| 163 | sed -e "/^#ifdef __NR_read$/ i $l1\n$l2\n$l3" \
|
---|
| 164 | -i sandbox-seccomp-filter.c
|
---|
| 165 | fi</userinput></screen>
|
---|
[5d2965c] | 166 | -->
|
---|
[3a373116] | 167 | <para>
|
---|
| 168 | Install <application>OpenSSH</application> by running the following
|
---|
| 169 | commands:
|
---|
| 170 | </para>
|
---|
[0931098] | 171 |
|
---|
[e7dc117] | 172 | <!-- -\-with-md5-passwords used to be here, but a comment inside of a <screen>
|
---|
| 173 | block leaves an eyesore. -->
|
---|
[1a3d7fb2] | 174 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 175 | --sysconfdir=/etc/ssh \
|
---|
| 176 | --with-privsep-path=/var/lib/sshd \
|
---|
| 177 | --with-default-path=/usr/bin \
|
---|
| 178 | --with-superuser-path=/usr/sbin:/usr/bin \
|
---|
[ca65e1e] | 179 | --with-pid-dir=/run &&
|
---|
[3a3b19b] | 180 | make</userinput></screen>
|
---|
[1b83a7c1] | 181 |
|
---|
[196cbf4] | 182 | <!-- I got all tests passed without this with 9.3p1, June 12, 2023.
|
---|
[3a373116] | 183 | <para>
|
---|
[48771ae] | 184 | The test suite requires an installed copy of <command>scp</command> to
|
---|
[bc6e56d] | 185 | complete the multiplexing tests. To run the test suite, first copy the
|
---|
| 186 | <command>scp</command> program to
|
---|
| 187 | <filename class="directory">/usr/bin</filename>, making sure that you
|
---|
[45db70f] | 188 | backup any existing copy first.
|
---|
[3a373116] | 189 | </para>
|
---|
[196cbf4] | 190 | -->
|
---|
[81a0948] | 191 | <!-- I got all tests passed without this with 9.0p1. Apr 13, 2022.
|
---|
[9556a94] | 192 | <para>
|
---|
| 193 | If you wish to run the tests, remove a test suite that is not valid on
|
---|
| 194 | Linux-based platforms:
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
| 197 | <screen><userinput>sed -i 's/conch-ciphers//' regress/Makefile</userinput></screen>
|
---|
[81a0948] | 198 | -->
|
---|
[5a6a6be] | 199 | <para>
|
---|
[7c017a3] | 200 | To test the results, issue: <command>make -j1 tests</command>.
|
---|
[21552cf] | 201 | <!--One test, <filename>key options</filename>, fails when run in chroot.-->
|
---|
[5a6a6be] | 202 | </para>
|
---|
| 203 |
|
---|
| 204 | <!-- commenting this, I get "all tests passed" [ ken ]
|
---|
| 205 | NB tests should be run as _user_ but the role in the comment is root
|
---|
[59382ab] | 206 |
|
---|
| 207 | commenting [ bruce ]: There are a couple of tests that want root.
|
---|
[6c6990c] | 208 | The log mentions that SUDO is not set. These skipped tests are
|
---|
[59382ab] | 209 | ignored and the end says 'all tests passed' even when not root
|
---|
| 210 |
|
---|
[3a373116] | 211 | <para>
|
---|
| 212 | To run the test suite, issue the following commands:
|
---|
| 213 | </para>
|
---|
[7c9e252] | 214 |
|
---|
[409e2e7] | 215 | <screen role="root"><userinput>make tests 2>&1 | tee check.log
|
---|
| 216 | grep FATAL check.log</userinput></screen>
|
---|
[7c9e252] | 217 |
|
---|
[3a373116] | 218 | <para>
|
---|
| 219 | If the above command produces no 'FATAL' errors, then proceed with the
|
---|
| 220 | installation, as the <systemitem class="username">root</systemitem> user:
|
---|
[5a6a6be] | 221 | </para>-->
|
---|
| 222 | <para>
|
---|
| 223 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[3a373116] | 224 | </para>
|
---|
[7c9e252] | 225 |
|
---|
[6c6990c] | 226 | <screen role="root"><userinput>make install &&
|
---|
| 227 | install -v -m755 contrib/ssh-copy-id /usr/bin &&
|
---|
| 228 |
|
---|
| 229 | install -v -m644 contrib/ssh-copy-id.1 \
|
---|
| 230 | /usr/share/man/man1 &&
|
---|
[5ee1266] | 231 | install -v -m755 -d /usr/share/doc/openssh-&openssh-version; &&
|
---|
[6c6990c] | 232 | install -v -m644 INSTALL LICENCE OVERVIEW README* \
|
---|
| 233 | /usr/share/doc/openssh-&openssh-version;</userinput></screen>
|
---|
[e4e0d060] | 234 | </sect2>
|
---|
| 235 |
|
---|
| 236 | <sect2 role="commands">
|
---|
| 237 | <title>Command Explanations</title>
|
---|
| 238 |
|
---|
[3a373116] | 239 | <para>
|
---|
| 240 | <parameter>--sysconfdir=/etc/ssh</parameter>: This prevents the
|
---|
| 241 | configuration files from being installed in
|
---|
| 242 | <filename class="directory">/usr/etc</filename>.
|
---|
| 243 | </para>
|
---|
| 244 |
|
---|
[1a3d7fb2] | 245 | <para>
|
---|
| 246 | <parameter>--with-default-path=/usr/bin</parameter> and
|
---|
| 247 | <parameter>--with-superuser-path=/usr/sbin:/usr/bin</parameter>:
|
---|
| 248 | These set <envar>PATH</envar> consistent with LFS and BLFS
|
---|
| 249 | <application>Shadow</application> package.
|
---|
| 250 | </para>
|
---|
| 251 |
|
---|
| 252 | <para>
|
---|
| 253 | <parameter>--with-pid-dir=/run</parameter>: This prevents
|
---|
[2c87187] | 254 | <application>OpenSSH</application> from referring to deprecated
|
---|
[1a3d7fb2] | 255 | <filename class="directory">/var/run</filename>.
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
[ecab0590] | 258 | <para>
|
---|
| 259 | <parameter>--without-zlib-version-check</parameter>: This prevents
|
---|
| 260 | <application>OpenSSH</application> from checking the version of
|
---|
| 261 | the system <application>Zlib</application>. We need to use this
|
---|
| 262 | switch or the version check would mistakenly report the latest
|
---|
| 263 | <application>Zlib</application> 1.13 <quote>too old</quote> and
|
---|
| 264 | reject it.
|
---|
| 265 | </para>
|
---|
| 266 |
|
---|
[3a373116] | 267 | <para>
|
---|
[f1d7196] | 268 | <option>--with-pam</option>: This parameter enables
|
---|
[3a373116] | 269 | <application>Linux-PAM</application> support in the build.
|
---|
| 270 | </para>
|
---|
| 271 |
|
---|
| 272 | <para>
|
---|
[6ae11da] | 273 | <option>--with-xauth=$XORG_PREFIX/bin/xauth</option>: Set the default
|
---|
[3a373116] | 274 | location for the <command>xauth</command> binary for X authentication.
|
---|
[6ae11da] | 275 | The environment variable <envar>XORG_PREFIX</envar> should be set
|
---|
| 276 | following <xref linkend='xorg-env'/>. This can also be controlled from
|
---|
[3a373116] | 277 | <filename>sshd_config</filename> with the XAuthLocation keyword. You can
|
---|
| 278 | omit this switch if <application>Xorg</application> is already installed.
|
---|
| 279 | </para>
|
---|
| 280 |
|
---|
| 281 | <para>
|
---|
[f1d7196] | 282 | <option>--with-kerberos5=/usr</option>: This option is used to
|
---|
[3a373116] | 283 | include Kerberos 5 support in the build.
|
---|
| 284 | </para>
|
---|
[409e2e7] | 285 |
|
---|
[ba0004e] | 286 | <para>
|
---|
[f1d7196] | 287 | <option>--with-libedit</option>: This option enables line editing
|
---|
[ba0004e] | 288 | and history features for <command>sftp</command>.
|
---|
| 289 | </para>
|
---|
| 290 |
|
---|
[e4e0d060] | 291 | </sect2>
|
---|
| 292 |
|
---|
| 293 | <sect2 role="configuration">
|
---|
| 294 | <title>Configuring OpenSSH</title>
|
---|
| 295 |
|
---|
| 296 | <sect3 id="openssh-config">
|
---|
| 297 | <title>Config Files</title>
|
---|
| 298 |
|
---|
[3a373116] | 299 | <para>
|
---|
| 300 | <filename>~/.ssh/*</filename>,
|
---|
[e4e0d060] | 301 | <filename>/etc/ssh/ssh_config</filename>, and
|
---|
[3a373116] | 302 | <filename>/etc/ssh/sshd_config</filename>
|
---|
| 303 | </para>
|
---|
[e4e0d060] | 304 |
|
---|
| 305 | <indexterm zone="openssh openssh-config">
|
---|
| 306 | <primary sortas="e-AA.ssh">~/.ssh/*</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 |
|
---|
| 309 | <indexterm zone="openssh openssh-config">
|
---|
| 310 | <primary sortas="e-etc-ssh-ssh_config">/etc/ssh/ssh_config</primary>
|
---|
| 311 | </indexterm>
|
---|
| 312 |
|
---|
| 313 | <indexterm zone="openssh openssh-config">
|
---|
| 314 | <primary sortas="e-etc-ssh-sshd_config">/etc/ssh/sshd_config</primary>
|
---|
| 315 | </indexterm>
|
---|
| 316 |
|
---|
[3a373116] | 317 | <para>
|
---|
| 318 | There are no required changes to any of these files. However,
|
---|
| 319 | you may wish to view the
|
---|
| 320 | <filename class='directory'>/etc/ssh/</filename> files and make any
|
---|
| 321 | changes appropriate for the security of your system. One recommended
|
---|
| 322 | change is that you disable
|
---|
| 323 | <systemitem class='username'>root</systemitem> login via
|
---|
| 324 | <command>ssh</command>. Execute the following command as the
|
---|
| 325 | <systemitem class='username'>root</systemitem> user to disable
|
---|
| 326 | <systemitem class='username'>root</systemitem> login via
|
---|
| 327 | <command>ssh</command>:
|
---|
| 328 | </para>
|
---|
[e4e0d060] | 329 |
|
---|
[6c24da75] | 330 | <screen role="root"><userinput>echo "PermitRootLogin no" >> /etc/ssh/sshd_config</userinput></screen>
|
---|
| 331 |
|
---|
[3a373116] | 332 | <para>
|
---|
| 333 | If you want to be able to log in without typing in your password, first
|
---|
| 334 | create ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub with
|
---|
| 335 | <command>ssh-keygen</command> and then copy ~/.ssh/id_rsa.pub to
|
---|
| 336 | ~/.ssh/authorized_keys on the remote computer that you want to log into.
|
---|
[f507f06] | 337 | You'll need to change REMOTE_USERNAME and REMOTE_HOSTNAME for the username and hostname of the remote
|
---|
| 338 | computer and you'll also need to enter your password for the ssh-copy-id command
|
---|
[3a373116] | 339 | to succeed:
|
---|
| 340 | </para>
|
---|
| 341 |
|
---|
| 342 | <screen><userinput>ssh-keygen &&
|
---|
[f507f06] | 343 | ssh-copy-id -i ~/.ssh/id_rsa.pub <replaceable>REMOTE_USERNAME</replaceable>@<replaceable>REMOTE_HOSTNAME</replaceable></userinput></screen>
|
---|
[3a373116] | 344 |
|
---|
| 345 | <para>
|
---|
| 346 | Once you've got passwordless logins working it's actually more secure
|
---|
| 347 | than logging in with a password (as the private key is much longer than
|
---|
| 348 | most people's passwords). If you would like to now disable password
|
---|
| 349 | logins, as the <systemitem class="username">root</systemitem> user:
|
---|
| 350 | </para>
|
---|
| 351 |
|
---|
| 352 |
|
---|
| 353 | <screen role="root"><userinput>echo "PasswordAuthentication no" >> /etc/ssh/sshd_config &&
|
---|
[4d15c65] | 354 | echo "KbdInteractiveAuthentication no" >> /etc/ssh/sshd_config</userinput></screen>
|
---|
[3a373116] | 355 |
|
---|
| 356 | <para>
|
---|
[f586237] | 357 | If you added <application>Linux-PAM</application> support and you want
|
---|
[3a373116] | 358 | ssh to use it then you will need to add a configuration file for
|
---|
| 359 | <application>sshd</application> and enable use of
|
---|
| 360 | <application>LinuxPAM</application>. Note, ssh only uses PAM to check
|
---|
| 361 | passwords, if you've disabled password logins these commands are not
|
---|
[f586237] | 362 | needed. If you want to use PAM, issue the following commands as the
|
---|
[3a373116] | 363 | <systemitem class='username'>root</systemitem> user:
|
---|
| 364 | </para>
|
---|
[6c24da75] | 365 |
|
---|
| 366 | <screen role="root"><userinput>sed 's@d/login@d/sshd@g' /etc/pam.d/login > /etc/pam.d/sshd &&
|
---|
[b30ddee] | 367 | chmod 644 /etc/pam.d/sshd &&
|
---|
[5a6a6be] | 368 | echo "UsePAM yes" >> /etc/ssh/sshd_config</userinput></screen>
|
---|
[e4e0d060] | 369 |
|
---|
[3a373116] | 370 | <para>
|
---|
| 371 | Additional configuration information can be found in the man
|
---|
| 372 | pages for <command>sshd</command>, <command>ssh</command> and
|
---|
| 373 | <command>ssh-agent</command>.
|
---|
| 374 | </para>
|
---|
[e4e0d060] | 375 | </sect3>
|
---|
| 376 |
|
---|
| 377 | <sect3 id="openssh-init">
|
---|
[f586237] | 378 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 379 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[e4e0d060] | 380 |
|
---|
[f586237] | 381 | <para revision="sysv">
|
---|
[3a373116] | 382 | To start the SSH server at system boot, install the
|
---|
[3c7bd00] | 383 | <filename>/etc/rc.d/init.d/sshd</filename> init script included
|
---|
[f586237] | 384 | in the <xref linkend="bootscripts"/> package.
|
---|
| 385 | </para>
|
---|
| 386 |
|
---|
| 387 | <para revision="systemd">
|
---|
| 388 | To start the SSH server at system boot, install the
|
---|
| 389 | <filename>sshd.service</filename> unit included in the
|
---|
| 390 | <xref linkend="systemd-units"/> package.
|
---|
[3c7bd00] | 391 | </para>
|
---|
[e4e0d060] | 392 |
|
---|
| 393 | <indexterm zone="openssh openssh-init">
|
---|
| 394 | <primary sortas="f-sshd">sshd</primary>
|
---|
| 395 | </indexterm>
|
---|
| 396 |
|
---|
| 397 | <screen role="root"><userinput>make install-sshd</userinput></screen>
|
---|
| 398 | </sect3>
|
---|
| 399 | </sect2>
|
---|
| 400 |
|
---|
| 401 | <sect2 role="content">
|
---|
| 402 | <title>Contents</title>
|
---|
| 403 |
|
---|
| 404 | <segmentedlist>
|
---|
| 405 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 406 | <segtitle>Installed Libraries</segtitle>
|
---|
[e4e0d060] | 407 | <segtitle>Installed Directories</segtitle>
|
---|
| 408 |
|
---|
| 409 | <seglistitem>
|
---|
[3a373116] | 410 | <seg>
|
---|
[5d2965c] | 411 | scp, sftp, <!--slogin (symlink to ssh),--> ssh, ssh-add, ssh-agent,
|
---|
[b2b7378b] | 412 | ssh-copy-id, ssh-keygen, ssh-keyscan, and sshd
|
---|
[c3c56b2] | 413 | </seg>
|
---|
| 414 | <seg>
|
---|
| 415 | None
|
---|
[3a373116] | 416 | </seg>
|
---|
| 417 | <seg>
|
---|
| 418 | /etc/ssh,
|
---|
[c175983] | 419 | /usr/share/doc/openssh-&openssh-version;, and
|
---|
| 420 | /var/lib/sshd
|
---|
[3a373116] | 421 | </seg>
|
---|
[e4e0d060] | 422 | </seglistitem>
|
---|
| 423 | </segmentedlist>
|
---|
| 424 |
|
---|
| 425 | <variablelist>
|
---|
| 426 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 427 | <?dbfo list-presentation="list"?>
|
---|
| 428 | <?dbhtml list-presentation="table"?>
|
---|
| 429 |
|
---|
| 430 | <varlistentry id="scp">
|
---|
| 431 | <term><command>scp</command></term>
|
---|
| 432 | <listitem>
|
---|
[3a373116] | 433 | <para>
|
---|
| 434 | is a file copy program that acts like <command>rcp</command> except
|
---|
[4c24eb0a] | 435 | it uses an encrypted protocol
|
---|
[3a373116] | 436 | </para>
|
---|
[e4e0d060] | 437 | <indexterm zone="openssh scp">
|
---|
| 438 | <primary sortas="b-scp">scp</primary>
|
---|
| 439 | </indexterm>
|
---|
| 440 | </listitem>
|
---|
| 441 | </varlistentry>
|
---|
| 442 |
|
---|
| 443 | <varlistentry id="sftp">
|
---|
| 444 | <term><command>sftp</command></term>
|
---|
| 445 | <listitem>
|
---|
[3a373116] | 446 | <para>
|
---|
[4c24eb0a] | 447 | is an FTP-like program that works over the SSH1 and SSH2 protocols
|
---|
[3a373116] | 448 | </para>
|
---|
[e4e0d060] | 449 | <indexterm zone="openssh sftp">
|
---|
| 450 | <primary sortas="b-sftp">sftp</primary>
|
---|
| 451 | </indexterm>
|
---|
| 452 | </listitem>
|
---|
| 453 | </varlistentry>
|
---|
[5d2965c] | 454 | <!-- Not installed anymore as of 8.5p1
|
---|
[e4e0d060] | 455 | <varlistentry id="slogin">
|
---|
| 456 | <term><command>slogin</command></term>
|
---|
| 457 | <listitem>
|
---|
[3a373116] | 458 | <para>
|
---|
[4c24eb0a] | 459 | is a symlink to <command>ssh</command>
|
---|
[3a373116] | 460 | </para>
|
---|
[e4e0d060] | 461 | <indexterm zone="openssh slogin">
|
---|
[b960e3ec] | 462 | <primary sortas="b-slogin">slogin</primary>
|
---|
[e4e0d060] | 463 | </indexterm>
|
---|
| 464 | </listitem>
|
---|
| 465 | </varlistentry>
|
---|
[5d2965c] | 466 | -->
|
---|
[e4e0d060] | 467 | <varlistentry id="ssh">
|
---|
| 468 | <term><command>ssh</command></term>
|
---|
| 469 | <listitem>
|
---|
[3a373116] | 470 | <para>
|
---|
| 471 | is an <command>rlogin</command>/<command>rsh</command>-like client
|
---|
[4c24eb0a] | 472 | program except it uses an encrypted protocol
|
---|
[3a373116] | 473 | </para>
|
---|
[e4e0d060] | 474 | <indexterm zone="openssh ssh">
|
---|
| 475 | <primary sortas="b-ssh">ssh</primary>
|
---|
| 476 | </indexterm>
|
---|
| 477 | </listitem>
|
---|
| 478 | </varlistentry>
|
---|
| 479 |
|
---|
| 480 | <varlistentry id="sshd">
|
---|
| 481 | <term><command>sshd</command></term>
|
---|
| 482 | <listitem>
|
---|
[3a373116] | 483 | <para>
|
---|
[4c24eb0a] | 484 | is a daemon that listens for <command>ssh</command> login requests
|
---|
[3a373116] | 485 | </para>
|
---|
[e4e0d060] | 486 | <indexterm zone="openssh sshd">
|
---|
| 487 | <primary sortas="b-sshd">sshd</primary>
|
---|
| 488 | </indexterm>
|
---|
| 489 | </listitem>
|
---|
| 490 | </varlistentry>
|
---|
| 491 |
|
---|
| 492 | <varlistentry id="ssh-add">
|
---|
| 493 | <term><command>ssh-add</command></term>
|
---|
| 494 | <listitem>
|
---|
[3a373116] | 495 | <para>
|
---|
[4c24eb0a] | 496 | is a tool which adds keys to the <command>ssh-agent</command>
|
---|
[3a373116] | 497 | </para>
|
---|
[e4e0d060] | 498 | <indexterm zone="openssh ssh-add">
|
---|
| 499 | <primary sortas="b-ssh-add">ssh-add</primary>
|
---|
| 500 | </indexterm>
|
---|
| 501 | </listitem>
|
---|
| 502 | </varlistentry>
|
---|
| 503 |
|
---|
| 504 | <varlistentry id="ssh-agent">
|
---|
| 505 | <term><command>ssh-agent</command></term>
|
---|
| 506 | <listitem>
|
---|
[3a373116] | 507 | <para>
|
---|
[4c24eb0a] | 508 | is an authentication agent that can store private keys
|
---|
[3a373116] | 509 | </para>
|
---|
[e4e0d060] | 510 | <indexterm zone="openssh ssh-agent">
|
---|
| 511 | <primary sortas="b-ssh-agent">ssh-agent</primary>
|
---|
| 512 | </indexterm>
|
---|
| 513 | </listitem>
|
---|
| 514 | </varlistentry>
|
---|
| 515 |
|
---|
[5a2f5972] | 516 | <varlistentry id="ssh-copy-id">
|
---|
| 517 | <term><command>ssh-copy-id</command></term>
|
---|
| 518 | <listitem>
|
---|
| 519 | <para>
|
---|
[5d2965c] | 520 | is a script that enables logins on remote machines using local keys
|
---|
[5a2f5972] | 521 | </para>
|
---|
| 522 | <indexterm zone="openssh ssh-copy-id">
|
---|
| 523 | <primary sortas="b-ssh-copy-id">ssh-copy-id</primary>
|
---|
| 524 | </indexterm>
|
---|
| 525 | </listitem>
|
---|
| 526 | </varlistentry>
|
---|
| 527 |
|
---|
[e4e0d060] | 528 | <varlistentry id="ssh-keygen">
|
---|
| 529 | <term><command>ssh-keygen</command></term>
|
---|
| 530 | <listitem>
|
---|
[3a373116] | 531 | <para>
|
---|
[4c24eb0a] | 532 | is a key generation tool
|
---|
[3a373116] | 533 | </para>
|
---|
[e4e0d060] | 534 | <indexterm zone="openssh ssh-keygen">
|
---|
| 535 | <primary sortas="b-ssh-keygen">ssh-keygen</primary>
|
---|
| 536 | </indexterm>
|
---|
| 537 | </listitem>
|
---|
| 538 | </varlistentry>
|
---|
| 539 |
|
---|
| 540 | <varlistentry id="ssh-keyscan">
|
---|
| 541 | <term><command>ssh-keyscan</command></term>
|
---|
| 542 | <listitem>
|
---|
[3a373116] | 543 | <para>
|
---|
[4c24eb0a] | 544 | is a utility for gathering public host keys from a number of hosts
|
---|
[3a373116] | 545 | </para>
|
---|
[e4e0d060] | 546 | <indexterm zone="openssh ssh-keyscan">
|
---|
| 547 | <primary sortas="b-ssh-keyscan">ssh-keyscan</primary>
|
---|
| 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
| 552 | </variablelist>
|
---|
| 553 | </sect2>
|
---|
[4c24eb0a] | 554 |
|
---|
[e4e0d060] | 555 | </sect1>
|
---|