mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Force a new line, to prevent syntax errors.
When I enabled SFTP chroot, "Subsystem sftp internal-sftp" was put directly after "UsePAM yes" (Ubuntu 16.04.1), which made "UsePAM yesSubsystem sftp internal-sftp", which obviously caused a syntax error. I fixed this by manually dividing those two options.
This commit is contained in:
parent
b103640a0f
commit
e757dc408a
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ fi
|
||||||
|
|
||||||
# Enabling jailed sftp
|
# Enabling jailed sftp
|
||||||
if [ -z "$sftp_i" ]; then
|
if [ -z "$sftp_i" ]; then
|
||||||
|
echo " " >> $config
|
||||||
echo "Subsystem sftp internal-sftp" >> $config
|
echo "Subsystem sftp internal-sftp" >> $config
|
||||||
echo "Match Group sftp-only" >> $config
|
echo "Match Group sftp-only" >> $config
|
||||||
echo "ChrootDirectory /chroot/%u" >> $config
|
echo "ChrootDirectory /chroot/%u" >> $config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue