From f2e1502d5a4364aaeb86b35744b83d3f4b07c355 Mon Sep 17 00:00:00 2001 From: cedricAbonnel <64610571+cedricAbonnel@users.noreply.github.com> Date: Sat, 16 May 2020 20:49:11 +0200 Subject: [PATCH] Update prep-server.sh --- notes/prep-server.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notes/prep-server.sh b/notes/prep-server.sh index 007e46c..390cdab 100644 --- a/notes/prep-server.sh +++ b/notes/prep-server.sh @@ -92,6 +92,8 @@ sed -i 's/#\?\(PerminRootLogin\s*\).*$/\1 no/' /etc/ssh/sshd_config sed -i 's/#\?\(PubkeyAuthentication\s*\).*$/\1 yes/' /etc/ssh/sshd_config sed -i 's/#\?\(PermitEmptyPasswords\s*\).*$/\1 no/' /etc/ssh/sshd_config #sed -i 's/#\?\(PasswordAuthentication\s*\).*$/\1 no/' /etc/ssh/sshd_config +systemctl restart ssh +systemctl restart sshd wget https://raw.githubusercontent.com/cedricAbonnel/server-web/master/scripts/bash_aliases mv bash_aliases /home/$NAME_USER/.bash_aliases