mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ssh_config: add conf block for sftp apps
This commit is contained in:
parent
af567c6f85
commit
51478d14e2
1 changed files with 8 additions and 0 deletions
|
@ -90,6 +90,14 @@ Match Group sftp.main,!ssh.main
|
|||
# Disable .ssh/rc, which could be edited (e.g. from Nextcloud or whatever) by users to execute arbitrary commands even if SSH login is disabled
|
||||
PermitUserRC no
|
||||
|
||||
Match Group sftp.app,!ssh.app
|
||||
ForceCommand internal-sftp
|
||||
ChrootDirectory %h
|
||||
AllowTcpForwarding no
|
||||
AllowStreamLocalForwarding no
|
||||
PermitTunnel no
|
||||
PermitUserRC no
|
||||
PasswordAuthentication yes
|
||||
|
||||
# root login is allowed on local networks
|
||||
# It's meant to be a backup solution in case LDAP is down and
|
||||
|
|
Loading…
Add table
Reference in a new issue