Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Google sftp - if you just want to transfer files over ssh.
If it is “locked” in the directory, then chroot, but there are nuances here ...
A chroot is created for this user, and a small world for the user is created there, its own homedir, and the desired folder is already placed there.
The fact is that for any SSH user, the / bin / folder MUST exist in which / bash is located, because the first time you log in, / bin / bash is launched, the user must also see related utilities like iconv, cp (if the implementation is in the form of a binary), php , grep and so on. Without this it will be impossible to work.
Therefore, where the user enters via SSH, there is always a folder /bin, /etc, /dev, /home and so on.
Own / bin, / etc / and other environment for the user takes about a gigabyte (ubunta server).
I don't understand these dances.
after all, you can natively chmod to remove access "for the rest" from all folders except the necessary one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question