add-sftp-user/install-sftp.sh

12 lines
274 B
Bash
Raw Normal View History

2023-10-27 16:19:22 +00:00
#!/bin/bash
2023-10-27 16:47:42 +00:00
# Root User
2023-10-27 16:19:22 +00:00
sudo su
# Update sshd_config
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
# Adjust permissions
chown root:root /var/www/webroot/ROOT
2023-10-27 17:29:17 +00:00
chmod 755 /var/www/webroot/ROOT
#Restart SSH daemon
sudo systemctl restart sshd