rename *-recursive.* to *-tree.*

This commit is contained in:
Luk Lu
2023-03-11 08:22:10 +08:00
parent 55d98b487a
commit de6baa9d64
13 changed files with 7 additions and 3 deletions

View File

@@ -57,8 +57,10 @@ echo
if [ -e /etc/ssh/sshd_config ]
then
echo "=== Disallow root login: #PermitRootLogin yes"
sed -i "s|^PermitRootLogin |#PermitRootLogin |g" /etc/ssh/sshd_config
echo "=== Deny root login: PermitRootLogin no"
sed -i "s|PermitRootLogin |#PermitRootLogin |g" /etc/ssh/sshd_config && echo 'PermitRootLogin no' >> /etc/ssh/sshd_config
echo "=== Allow password login: PasswordAuthentication yes"
sed -i "s|PasswordAuthentication |PasswordAuthentication |g" /etc/ssh/sshd_config && echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
service sshd restart
echo
fi