Skip to content

Commit e757dc4

Browse files
authored
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.
1 parent b103640 commit e757dc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/v-add-sys-sftp-jail

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ fi
4545

4646
# Enabling jailed sftp
4747
if [ -z "$sftp_i" ]; then
48+
echo " " >> $config
4849
echo "Subsystem sftp internal-sftp" >> $config
4950
echo "Match Group sftp-only" >> $config
5051
echo "ChrootDirectory /chroot/%u" >> $config

0 commit comments

Comments
 (0)