diff options
author | kwadronaut <kwadronaut@leap.se> | 2016-09-27 17:49:43 +0200 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2016-09-27 17:49:43 +0200 |
commit | 8a28d0f9b7dba02cbca87307c440fc27c68f1ec2 (patch) | |
tree | 53984ef9d5f33bf2e7d8141b2463a805c9e9f1bc | |
parent | 4b99c7b9d1319a24ba47fb22dc42c1e0eddf8d49 (diff) |
Permit ssh-rootlogin on Jessie
-rw-r--r-- | definitions/jessie/base.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |