sftp access

This commit is contained in:
2024-12-13 11:34:16 +01:00
parent a1a52d3f89
commit 435f2ca6a2
7 changed files with 47 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
HostKey /ssh/ssh_host_rsa_key
HostKey /ssh/ssh_host_ecdsa_key
HostKey /ssh/ssh_host_ed25519_key
#SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 1m
PermitRootLogin no
PubkeyAuthentication yes
MaxAuthTries 3
PrintMotd no
AuthorizedKeysFile /ssh/authorized_keys
PasswordAuthentication no
AllowAgentForwarding no
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
Subsystem sftp internal-sftp
ChrootDirectory /data
ForceCommand internal-sftp -d /data/www