lot of stuff

This commit is contained in:
2019-04-17 14:23:35 +02:00
parent 7fcf1d097b
commit 742b7aca15
14 changed files with 479 additions and 75 deletions
+8 -9
View File
@@ -1,17 +1,16 @@
#!/bin/sh
echo '\033[35m
__________ __ __
/ ___/ ___// / / /
\__ \\__ \/ /_/ /
___/ /__/ / __ /
/____/____/_/ /_/
\033[0m'
echo '
_
_____| |_
(_-<_-< . \
/__/__/_||_|
'
. bin/checkroot.sh
sed -i 's/#PermitRootLogin\ prohibit-password/PermitRootLogin no/g' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin\ prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
sed -i 's/#PermitEmptyPasswords\ yes/PermitEmptyPasswords no/g' /etc/ssh/sshd_config
/etc/init.d/sshd restart
echo "\033[92;1mSSH secured\033[Om"
echo "SSH secured"