From 0b1d1add1975d0869816baece526d24061009ad1 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 28 Oct 2023 01:29:17 +0800 Subject: [PATCH] added ssh restart --- install-sftp.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-sftp.sh b/install-sftp.sh index 5bc4358..5eefa39 100644 --- a/install-sftp.sh +++ b/install-sftp.sh @@ -6,4 +6,7 @@ sudo su echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config # Adjust permissions chown root:root /var/www/webroot/ROOT -chmod 755 /var/www/webroot/ROOT \ No newline at end of file +chmod 755 /var/www/webroot/ROOT + +#Restart SSH daemon +sudo systemctl restart sshd \ No newline at end of file