So I followed this guide to the letter: http://markshust.com/2013/04/01/how-setup-chrootd-sftp-account-linux and a few other guides as well, but I seem to be incapable of getting a connection.
I am running on an Ubuntu system.
This is what I get in my auth.log:
Accepted password for repouser from 127.0.0.1 port 57791 ssh2
pam_unix(sshd:session): session opened for user repouser by (uid=0)
subsystem request for sftp by user repouser
pam_unix(sshd:session): session closed for user repouser
Connection closed by 192.168.10.191 [preauth]
Here is a tree print from my home dir:
.
├── [root root ] repouser
│ └── [repouser dialogue] public
My sshd_config:
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
Match Group dialoguerepo
ChrootDirectory /home/%u
ForceCommand internal-sftp
My /etc/passwd:
repouser:x:1008:1008::/public:/sbin/nologin
My /etc/group:
dialoguerepo:x:1008:
I have no clue what is wrong, I just get the error message connection closed, can anyone help?