File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if [ -z "$sftp_i" ]; then
5151 echo " ChrootDirectory /srv/jail/%u" >> $config
5252 echo " X11Forwarding no" >> $config
5353 echo " AllowTCPForwarding no" >> $config
54- echo " ForceCommand internal-sftp -d /home" >> $config
54+ echo " ForceCommand internal-sftp -d /home/%u " >> $config
5555 restart=' yes'
5656fi
5757
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ if [ -x /usr/sbin/jailbash ]; then
3333 $HESTIA /bin/v-add-sys-ssh-jail
3434fi
3535
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+
3639# Check if file exists
3740if [ -f " /etc/cron.d/hestiaweb" ]; then
3841 # Just remove it
You can’t perform that action at this time.
0 commit comments