A
A
Alex Smith2018-03-29 17:27:32
linux
Alex Smith, 2018-03-29 17:27:32

How to add an ssh user so that only a specific folder can be accessed?

How to create an ssh user for a developer so that he has access to several folders and does not see the entire project, but can use the console (git npm) within the allocated folders and files available?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2018-03-29
@sasnnick

https://unix.stackexchange.com/questions/208960/ho...

S
Saboteur, 2018-03-29
@saboteur_kiev

git cannot work within dedicated folders, it can only work with an entire repository. At least for the reason that the .git service folder is located at the root of the repository.
You either need to separate your code into separate modules and give access to the modules.
Or if read-only access to the entire project does not harm, then hang up a git behind some bitbucket / stash / gerrit thread, on which you already configure access rights to branches and folders.

A
AVKor, 2018-03-29
@AVKor

sftp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question