From 4fb612b33667898f65f4adc0ee38beac459cd951 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Mon, 25 May 2020 02:37:54 -0500 Subject: [PATCH] Debian/Ubuntu: Expand SSH instructions This makes the PermitRootLogin changes part of the actual steps rather than a comment. I've also made its removal an explicit step. Signed-off-by: Richard Laager --- .../Debian/Debian Buster Root on ZFS.rst | 14 +++++++++++--- .../Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst index 38afea8..f08468d 100644 --- a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst @@ -804,9 +804,8 @@ Step 6: First Boot apt install --yes openssh-server - If you want to login as root via SSH, set ``PermitRootLogin yes`` in - ``/etc/ssh/sshd_config``. For security, undo this as soon as possible - (i.e. once you have your regular user account setup). + vi /etc/ssh/sshd_config + # Set: PermitRootLogin yes #. Optional: Snapshot the initial installation:: @@ -960,6 +959,15 @@ Step 9: Final Cleanup sudo usermod -p '*' root +#. Optional (but highly recommended): Disable root SSH logins: + + If you installed SSH earlier, revert the temporary change:: + + vi /etc/ssh/sshd_config + # Remove: PermitRootLogin yes + + systemctl restart ssh + #. Optional: Re-enable the graphical boot process: If you prefer the graphical boot process, you can re-enable it now. If diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index 5c34bd8..074949f 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -849,9 +849,8 @@ Step 6: First Boot apt install --yes openssh-server - If you want to login as root via SSH, set ``PermitRootLogin yes`` in - ``/etc/ssh/sshd_config``. For security, undo this as soon as possible - (i.e. once you have your regular user account setup). + vi /etc/ssh/sshd_config + # Set: PermitRootLogin yes #. Exit from the ``chroot`` environment back to the LiveCD environment:: @@ -948,6 +947,15 @@ Step 8: Final Cleanup sudo usermod -p '*' root +#. Optional (but highly recommended): Disable root SSH logins: + + If you installed SSH earlier, revert the temporary change:: + + vi /etc/ssh/sshd_config + # Remove: PermitRootLogin yes + + systemctl restart ssh + #. Optional: Re-enable the graphical boot process: If you prefer the graphical boot process, you can re-enable it now. If