diff options
author | kwadronaut <kwadronaut@leap.se> | 2015-11-20 08:44:24 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2015-11-20 08:44:24 +0100 |
commit | e8ffd7857395223cbc1af443424957884502a11f (patch) | |
tree | e04233c4b2824efa4cd0e1e200a6c717241e369a /definitions/jessie/base.sh | |
parent | 06c98e8cdaddda13fa81d2bc975e0d887e7f4a25 (diff) |
add root ssh login, do a safe-upgrade of packages jessie
Diffstat (limited to 'definitions/jessie/base.sh')
-rw-r--r-- | definitions/jessie/base.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/definitions/jessie/base.sh b/definitions/jessie/base.sh index e07c289..48b90ef 100644 --- a/definitions/jessie/base.sh +++ b/definitions/jessie/base.sh @@ -7,13 +7,21 @@ apt-get -y install curl unzip vim tmux # Set up sudo echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant -# jessie -sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config -echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config +# LEAP still requires ssh-root login: + +# Either create a root password OR a user with sudo rights in the preseed +echo 'root:vagrant' | sudo chpasswd + +echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config +#echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config +sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # Tweak sshd to prevent DNS resolution (speed up logins) echo 'UseDNS no' >> /etc/ssh/sshd_config +# reload sshd +systemctl reload sshd + # Remove 5s grub timeout to speed up booting cat <<EOF > /etc/default/grub # If you change this file, run 'update-grub' afterwards to update |