530
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# --- KUBE SFTP GLOBAL BEGIN ---
|
||||
|
||||
PermitRootLogin no
|
||||
PermitUserEnvironment no
|
||||
|
||||
LoginGraceTime 30
|
||||
MaxAuthTries 3
|
||||
MaxSessions 5
|
||||
MaxStartups 200:30:500
|
||||
|
||||
Compression no
|
||||
DebianBanner no
|
||||
|
||||
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org
|
||||
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr
|
||||
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
|
||||
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
|
||||
PubkeyAcceptedAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
|
||||
|
||||
# --- KUBE SFTP GLOBAL END ---
|
||||
@@ -0,0 +1,22 @@
|
||||
# --- KUBE SFTP GROUP BEGIN ---
|
||||
|
||||
Match Group {{sftp_access_group}}
|
||||
ChrootDirectory %h
|
||||
ForceCommand internal-sftp -d /www -u 027
|
||||
|
||||
PasswordAuthentication yes
|
||||
KbdInteractiveAuthentication no
|
||||
PubkeyAuthentication yes
|
||||
|
||||
PermitTTY no
|
||||
PermitTunnel no
|
||||
|
||||
AllowTcpForwarding no
|
||||
AllowAgentForwarding no
|
||||
AllowStreamLocalForwarding no
|
||||
X11Forwarding no
|
||||
|
||||
ClientAliveInterval 300
|
||||
ClientAliveCountMax 2
|
||||
|
||||
# --- KUBE SFTP GROUP END ---
|
||||
Reference in New Issue
Block a user