Laravel Forge + DigitalOcean - Adding a SFTP user with restricted access only to a directory

▼魔方 西西 提交于 2019-12-23 15:23:18

问题


I am using Laravel Forge in a DigitalOcean droplet. I need to grant SFTP access to a specific directory on the server to one of my clients. He needs read/write access to only that directory, and I am having problems with the setup.

I have followed the steps in https://bensmann.no/restrict-sftp-users-to-home-folder/, but I am stuck because Forge does not permit password authentication, only through public/private SSH keys...

Has someone done something similar? What would be the best approach for getting it done?

Many thanks in advance.


回答1:


I know it's late, but it might help somebody in the future. I used Freek's post to set this up in Forge and although it seemed temperamental at first locking me out of SSH completely, it just started working after a few minutes.



来源:https://stackoverflow.com/questions/40834518/laravel-forge-digitalocean-adding-a-sftp-user-with-restricted-access-only-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!