add-sftp-user/install-sftp.sh

12 lines
274 B
Bash

#!/bin/bash
# Root User
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
chmod 755 /var/www/webroot/ROOT
#Restart SSH daemon
sudo systemctl restart sshd