mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ssh config: indent, misc readabilty improvements
This commit is contained in:
parent
f158a4da9e
commit
b40f21458f
1 changed files with 12 additions and 13 deletions
|
@ -79,10 +79,9 @@ Subsystem sftp internal-sftp
|
||||||
# Apply following instructions to user with sftp perm only
|
# Apply following instructions to user with sftp perm only
|
||||||
Match Group sftp.main,!ssh.main
|
Match Group sftp.main,!ssh.main
|
||||||
ForceCommand internal-sftp
|
ForceCommand internal-sftp
|
||||||
# We currently are not able to restrict /home/USER
|
# We can't restrict to /home/%u because the chroot base must be owned by root
|
||||||
# So we chroot only on /home
|
# So we chroot only on /home
|
||||||
# See https://serverfault.com/questions/584986/bad-ownership-or-modes-for-chroot-directory-component
|
# See https://serverfault.com/questions/584986/bad-ownership-or-modes-for-chroot-directory-component
|
||||||
#ChrootDirectory /home/%u
|
|
||||||
ChrootDirectory /home
|
ChrootDirectory /home
|
||||||
# Forbid SFTP users from using their account SSH as a VPN (even if SSH login is disabled)
|
# Forbid SFTP users from using their account SSH as a VPN (even if SSH login is disabled)
|
||||||
AllowTcpForwarding no
|
AllowTcpForwarding no
|
||||||
|
|
Loading…
Add table
Reference in a new issue