Answer the question
In order to leave comments, you need to log in
What is causing the connection problem?
What am I trying to do? - Add a specific user to a specific folder on the server.
What do I end up with? - I get an error when connecting via SSH:
[SSH] Server Version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
[SSH] Logged in (password)
[SSH] ERROR: Read from remote host MYIP: Удаленный хост принудительно разорвал существующее подключение
[SSH] FAIL: Write failed: Удаленный хост принудительно разорвал существующее подключение
[SSH] INFO: DISCONNECT
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
Match User john
ChrootDirectory /home/john
ForceCommand internal-sftp
AllowTCPForwarding no
X11Forwarding no
Answer the question
In order to leave comments, you need to log in
> What am I trying to do? - Add a specific user to a specific folder on the server.
The error is here.
You shove the user into the sftp chroot, the console will not work for him in this case in any case (if only because he does not have access to / bin / bash).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question