Report this

What is the reason for this report?

How to create user SSH only access one folder (maybe can't delete ? :D)

Posted on July 5, 2018

Hello and thanks to come here !

I’m writting a new script to save my server. I would like to create a specific user can access to a specific folder on my other server to send files by SCP.

I have seen lot of purposes but now I don’t really know what’s the best thing to do…

If it was possible to ensure that the user is only ssh access to the server to transmit files by SCP, it means no other access like SFTP or FTP. Of course he should not be able to get out of his folder. Finally, if it was possible to forbid the suppression it would be really really awesome for security !

Thanks for all,

Coeurdelion, Full Stack Developper Love DigitalOcean

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.