Answer the question
In order to leave comments, you need to log in
How to give a user sftp access to a specific folder?
Hello!
Faced with the task - I need to give a certain user access via sftp to a certain directory of files: /var/www/ site1 The user is
authorized by ssh key.
Please tell me the easiest way to solve the problem.
Answer the question
In order to leave comments, you need to log in
If you need to give access only to this folder, then set it for the user as home and then you can configure the sftp chroot. A user can have sftp access without being able to get a shell on the host.
https://wiki.archlinux.org/index.php/SFTP_chroot
look here - solderintheveins.co.uk/2011/03/ubuntu-sftp-only-ac...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question