Hello!
I am trying to send some video files over the internet to my napp-it hosted zfs pool.
The pool is working ok locally.
I created a user with no console access, and set the following in /etc/ssh/sshd_config:
Subsystem sftp /usr/libexec/amd64/sftp-server
Match User sftpuser #same as the user i created
ForceCommand internal-sftp
#Chrootdirectory /secunda/blacksea/Camere_Comarnic/ #the folder i want to isolate the user to
ChrootDirectory /jail/ #the folder where if i isolate the user, it is working.
AllowTcpForwarding no
X11Forwarding no
when using folder "/jail/" I can login through sftp using winscp locally.
when using folder "/secunda/blacksea/Camere_Comarnic/" and I try to login, I get an "Authentication failed" error in winscp.
I think it might have something to do with permissions, atm:
drwxr-xr-x 3 root root 3 Nov 6 15:49 jail
drwxr-xr-x+ 4 root root 4 Apr 5 2023 secunda
drwxrwxrwx+ 32 root root 33 Nov 6 20:30 blacksea
drwxr-xr-x+ 4 root root 4 Nov 7 09:56 Camere_Comarnic
Can anybody helm me solve this issue?
I am trying to send some video files over the internet to my napp-it hosted zfs pool.
The pool is working ok locally.
I created a user with no console access, and set the following in /etc/ssh/sshd_config:
Subsystem sftp /usr/libexec/amd64/sftp-server
Match User sftpuser #same as the user i created
ForceCommand internal-sftp
#Chrootdirectory /secunda/blacksea/Camere_Comarnic/ #the folder i want to isolate the user to
ChrootDirectory /jail/ #the folder where if i isolate the user, it is working.
AllowTcpForwarding no
X11Forwarding no
when using folder "/jail/" I can login through sftp using winscp locally.
when using folder "/secunda/blacksea/Camere_Comarnic/" and I try to login, I get an "Authentication failed" error in winscp.
I think it might have something to do with permissions, atm:
drwxr-xr-x 3 root root 3 Nov 6 15:49 jail
drwxr-xr-x+ 4 root root 4 Apr 5 2023 secunda
drwxrwxrwx+ 32 root root 33 Nov 6 20:30 blacksea
drwxr-xr-x+ 4 root root 4 Nov 7 09:56 Camere_Comarnic
Can anybody helm me solve this issue?