Update prep-server.sh

This commit is contained in:
cedricAbonnel 2020-05-16 20:49:11 +02:00 committed by GitHub
parent 91fcc9f907
commit f2e1502d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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/#\?\(PubkeyAuthentication\s*\).*$/\1 yes/' /etc/ssh/sshd_config
sed -i 's/#\?\(PermitEmptyPasswords\s*\).*$/\1 no/' /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 #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 wget https://raw.githubusercontent.com/cedricAbonnel/server-web/master/scripts/bash_aliases
mv bash_aliases /home/$NAME_USER/.bash_aliases mv bash_aliases /home/$NAME_USER/.bash_aliases