added ssh restart

main
Anthony 2023-10-28 01:29:17 +08:00
parent 693e8bc687
commit 0b1d1add19
1 changed files with 4 additions and 1 deletions

View File

@ -6,4 +6,7 @@ sudo su
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
# Adjust permissions # Adjust permissions
chown root:root /var/www/webroot/ROOT chown root:root /var/www/webroot/ROOT
chmod 755 /var/www/webroot/ROOT chmod 755 /var/www/webroot/ROOT
#Restart SSH daemon
sudo systemctl restart sshd