Hello all,
I recently updated my 13.x piCore on my raspi 3 model B to version 14, and updated all the required extensions. Previously when it was version 13 I had an SFTP server running on it that I used semi-frequently. As of updating to version 14, I can't seem to log in to the piCore through sftp and access the server. Every time I try to log in, it asks for my user password, and when I enter it in correctly I immediately get booted out with the error message:
sftp www-data@raspivpn
www-data@raspivpn's password:
Connection to raspivpn closed by remote host.
Connection closed.
Connection closed
All my other ssh capabilities are functioning correctly, I can ssh into my tc user, do scp, rsync, etc.
I know that this type of error is usually caused by directory permissions problems, but to my knowledge I have all the directories with the correct permissions.
The following is an excerpt from my sshd_config, and the permissions of my directories:
Subsystem sftp /usr/local/lib/openssh/sftp-server
# sftp stuff
Match User www-data
ChrootDirectory /mnt/www
ForceCommand internal-sftp
PasswordAuthentication yes
AllowTcpForwarding no
X11Forwarding no
ClientAliveInterval 60
drwxr-xr-x 10 root root 200 Apr 2 15:34 mnt/
drwxr-xr-x 7 root root 140 Apr 2 15:34 www/
I've been scratching my head over this for the last 2 days. What am I doing wrong here?