SFTP setup bugs squashed.
This commit is contained in:
parent
9c43a9a247
commit
862bfc5f71
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue