SFTP setup bugs squashed.

This commit is contained in:
Scott Duensing 2022-09-21 20:40:08 -05:00
parent 9c43a9a247
commit 862bfc5f71

View file

@ -290,7 +290,7 @@ function buildSDL2() {
function configureSFTP() {
if [[ ! -f /etc/ssh/sftponly_ready ]]; then
sudo addgroup sftponly && true
sudo sed -i 's/^Subsystem/#Subsystem/g' sshd_config
sudo sed -i 's/^Subsystem/#Subsystem/g' /etc/ssh/sshd_config
echo "Subsystem sftp internal-sftp -f AUTH -l VERBOSE" | sudo tee -a /etc/ssh/sshd_config
echo "Match Group sftponly" | sudo tee -a /etc/ssh/sshd_config
echo -e "\tChrootDirectory %h" | sudo tee -a /etc/ssh/sshd_config