We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9187d54 commit 5c04a83Copy full SHA for 5c04a83
2 files changed
bin/v-add-sys-sftp-jail
@@ -51,7 +51,7 @@ if [ -z "$sftp_i" ]; then
51
echo " ChrootDirectory /srv/jail/%u" >> $config
52
echo " X11Forwarding no" >> $config
53
echo " AllowTCPForwarding no" >> $config
54
- echo " ForceCommand internal-sftp -d /home" >> $config
+ echo " ForceCommand internal-sftp -d /home/%u" >> $config
55
restart='yes'
56
fi
57
install/upgrade/versions/1.9.3.sh
@@ -33,6 +33,9 @@ if [ -x /usr/sbin/jailbash ]; then
33
$HESTIA/bin/v-add-sys-ssh-jail
34
35
36
+# Fix sftp not starting in /home/[user]
37
+sed -i -E "s/ForceCommand internal-sftp -d \/home$/ForceCommand internal-sftp -d \/home\/%u/g" /etc/ssh/sshd_config
38
+
39
# Check if file exists
40
if [ -f "/etc/cron.d/hestiaweb" ]; then
41
# Just remove it
0 commit comments