Linux: Difference between revisions
No edit summary Tag: visualeditor-switched |
|||
Line 600: | Line 600: | ||
# Then ssh into your account. | # Then ssh into your account. | ||
}} | }} | ||
==SFTP== | |||
You can create a specific user with a chroot to limit SFTP to specific folders. | |||
See [[Archwiki | SFTP chroot]] for details. | |||
/etc/ssh/sshd_config | |||
<pre> | |||
Subsystem sftp /usr/lib/ssh/sftp-server | |||
Match Group sftponly | |||
ChrootDirectory %h | |||
ForceCommand internal-sftp | |||
AllowTcpForwarding no | |||
X11Forwarding no | |||
PasswordAuthentication no | |||
</pre> |