From 8a28d0f9b7dba02cbca87307c440fc27c68f1ec2 Mon Sep 17 00:00:00 2001 From: kwadronaut Date: Tue, 27 Sep 2016 17:49:43 +0200 Subject: Permit ssh-rootlogin on Jessie --- definitions/jessie/base.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/definitions/jessie/base.sh b/definitions/jessie/base.sh index 8c3b4bc..770fa1f 100644 --- a/definitions/jessie/base.sh +++ b/definitions/jessie/base.sh @@ -8,6 +8,9 @@ apt-get -y install curl unzip vim tmux echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant # LEAP still requires ssh-root login Jessie: +sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config +echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config +echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config # Either create a root password OR a user with sudo rights in the preseed echo 'root:vagrant' | sudo chpasswd -- cgit v1.2.3