Код: Выделить всё
# Change to no to disable tunnelled clear text passwords
PasswordAuthentication no
Код: Выделить всё
Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
Match group webuser
ForceCommand internal-sftp
ChrootDirectory /var/vhost/%u
X11Forwarding no
AllowTcpForwarding no
Код: Выделить всё
/etc/init.d/ssh restart
Код: Выделить всё
root@deamon:~# sftp drivesource@localhost
Connecting to localhost...
drivesource@localhost's password:
sftp> ls
htdocs
sftp> pwd
Remote working directory: /
sftp>