Answer the question
In order to leave comments, you need to log in
SFTP + SSH access?
Hello, I'm new to managing unix systems, so I need some expert help.
Created a user, conditional `yavicev`.
Connected access to it via sftp via sshd_config:
Link
Prohibited exit from a specific folder via ChrootDirectory.
When I connect, it shows:
/bin/sh: No such file or directory
Connection to localhost closed.
Answer the question
In order to leave comments, you need to log in
So it won't work. Chroot in the console is not so easy.
There was a shell like lshell. See if she's still alive. It's easy to do it there.
Firstly, the OpenSSH settings had to be placed here under the spoiler, and not on an external resource.
Secondly, it had to be configured (there is an example in the config at the end, starting with Match User
). When connecting via sftp, the user will not be able to go beyond ChrootDirectory /sftp
(for example).
And for chroot via ssh, here it is written how it is implemented.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question