Laravel Forge + DigitalOcean-添加仅对目录具有受限访问权限的SFTP用户 [英] Laravel Forge + DigitalOcean - Adding a SFTP user with restricted access only to a directory

查看:100
本文介绍了Laravel Forge + DigitalOcean-添加仅对目录具有受限访问权限的SFTP用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在DigitalOcean小滴中使用Laravel Forge. 我需要向我的一个客户端授予对服务器上特定目录的SFTP访问. 他只需要对该目录具有读/写访问权限,而我在设置时遇到了问题.

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.

我已按照 https://bensmann.no/中的步骤进行操作限制-sftp-用户到家庭文件夹/,但是我被困住了,因为Forge不允许仅通过公用/专用SSH密钥进行密码身份验证...

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?

非常感谢.

推荐答案

我知道已经很晚了,但是将来可能会对某人有所帮助.我使用了 Freek的帖子进行设置这在Forge中得到了解决,尽管起初看起来似乎很气质,但完全让我无法使用SSH,但几分钟后它才开始工作.

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.

这篇关于Laravel Forge + DigitalOcean-添加仅对目录具有受限访问权限的SFTP用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆