Subsystem sftp /usr/lib/openssh/sftp-serverMatch Group sftp_only X11Forwarding no AllowTcpForwarding no ChrootDirectory /home/DATA ForceCommand internal-sftp
zajdan@debian:~$ ssh data@192.168.1.6data@192.168.1.6's password: Write failed: Broken pipe
This service allows sftp connections only.Connection to 192.168.1.6 closed.
Konfigurace vypada v poradku. Problem vsak muze nastat, pokud vlastnikem adresare /home/DATA neni root, je to potreba. Take je treba odebrat skupine a ostatnim prava zapisu.chown root:root /home/DATAchmod 755 /home/DATA