Skip to content

Commit 9902200

Browse files
authored
SFTP get completely disabled in certain setups when enableling it (hestiacp#4859)
* When set to Subsystem sftp /usr/lib/openssh/sftp-server For some reason it changes to #Subsystem sftp and doesn't work when sftp is enabled subsystem request for sftp by user eris failed, subsystem not found * Check if this works better
1 parent 1263188 commit 9902200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-sys-sftp-jail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sftp_i=$(grep -n "^# Hestia SFTP Chroot" $config)
3939
# Disabling normal sftp
4040
if [ -n "$sftp_n" ]; then
4141
fline=$(echo $sftp_n | cut -f 1 -d :)
42-
sed -i "${fline}s/Subsystem.*sftp/#Subsystem sftp/" $config
42+
sed -i "${fline}s/Subsystem.*sftp/Subsystem sftp internal-sftp/" $config
4343
restart='yes'
4444
fi
4545

0 commit comments

Comments
 (0)