I'm following the SFTP chroot wiki on ArchWiki and finding a huge snag: I can't get my
sftponly users authorized.
tail -2 /etc/passwd (my 2 users):
groups chris and
$ ls -l /home total 24 drwxr-xr-x 3 root root 4096 Jan 9 16:12 jail/ $ ls -l /home/jail total 4 drwxrwxr-x 3 rick sftponly 4096 Jan 9 16:12 dropbox/
note: the only reason the
dropbox/ directory is owned by
rick is because I was experimenting with changing ownership of files within the chroot jail directory because this was something I'd read about in my extensive googling. I would like the both
rick to be able to edit the same files. I will investigate facl permissions when I get to the point that I can even log them in.
The relevant section in
Subsystem sftp /usr/lib/ssh/sftp-server Match Group sftponly ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding no PasswordAuthentication yes
From the log when I try to log in via
sftp rick@localhost and enter the password:
Jan 09 16:44:17 dell-dropbox sshd: Failed password for rick from ::1 port 57410 ssh2 Jan 09 16:44:23 dell-dropbox sshd: Failed password for rick from ::1 port 57410 ssh2 Jan 09 16:44:28 dell-dropbox sshd: Failed password for rick from ::1 port 57410 ssh2 Jan 09 16:44:29 dell-dropbox sshd: Connection closed by authenticating user rick ::1 port 57410 [preauth]
note: They both have passwords set. I am typing in the password correctly. I can sftp in as myself without any problem.
What on earth am I missing?