16 lines
384 B
Bash
16 lines
384 B
Bash
#!/bin/bash
|
|
|
|
# Become root
|
|
sudo su
|
|
|
|
# Download the SFTP user creation script
|
|
curl -O https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
|
|
chmod +x add-sftp.sh
|
|
|
|
# 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
|