Subsystem sftp internal-sftp -f AUTH -l VERBOSE
On DigitalOcean I had the following line, which I replaced.
Subsystem sftp /usr/lib/openssh/sftp-server
Match User myuser ChrootDirectory /home/myuser ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding no
Now we just need to restart the ssh service
sudo service ssh restart
SHARE RESOURCES.
cd /home/myuser mount -o bind /var/www/myfolder/var/import import
Please note that if you reboot the server, you will have to re-run this command.
sudo setfacl -Rm g:user_group:rwx
Related Articles
Laravel from scratch on was EC2
By Vimuth Somarathna
Laravel 5.3 add multi-language functionality
By Luigi Laezza
Mailtrap with symfony, testing emails has never been so easy
By Luigi Laezza
Improve your social media strategy with Semrush
By Luigi Laezza
On SMASHINGMAGAZINE an introduction to building and sending HTML email for web developers
By Luigi Laezza
Inexpensive stage lamp server with Raspberry PI3 and Ubunto server
By Luigi Laezza
Secure your SSH connection disabling SSH password logins
By Luigi Laezza
Analizzare tecniche e strumenti per conquistare nuovi clienti e far crescere la tua attività
By Luigi Laezza