From 0e1c50cae042b411587e384f8bdca9363dd686bb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 12 Aug 2014 23:28:55 +0000 Subject: Fix setting up ssh access now that root with password is disabled by default. --- en/appendix/chroot-install.xml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'en') diff --git a/en/appendix/chroot-install.xml b/en/appendix/chroot-install.xml index 8d3f8a3b1..e96d76a4e 100644 --- a/en/appendix/chroot-install.xml +++ b/en/appendix/chroot-install.xml @@ -614,16 +614,46 @@ instead of hd:. -Remote access: Installing SSH and setting a password +Remote access: Installing SSH and setting up access In case you can login to the system via console, you can skip this section. If the system should be accessible via the network later on, you need to install -SSH and set a password for root: +SSH and set up access. # aptitude install ssh + + + +Root login with password is disabled by default, so setting up access can be +done by setting a password and re-enable root login with password: + + # passwd +# editor /etc/ssh/sshd_config + + +This is the option to be enabled: + + +PermitRootLogin yes + + +Access can also be set up by adding an ssh key to the root account: + + +# mkdir /root/.ssh +# cat << EOF > /root/.ssh/authorized_keys +ssh-rsa .... +EOF + + +Lastly, access can be set up by adding a non-root user and setting a password: + + +# adduser joe +# passwd joe -- cgit v1.2.3