Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nextcloudpi.sh')
-rw-r--r--nextcloudpi.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/nextcloudpi.sh b/nextcloudpi.sh
index 720153ed..0d47ded6 100644
--- a/nextcloudpi.sh
+++ b/nextcloudpi.sh
@@ -203,11 +203,13 @@ EOF
## SSH hardening
sed -i 's|^#AllowTcpForwarding .*|AllowTcpForwarding no|' /etc/ssh/sshd_config
sed -i 's|^#ClientAliveCountMax .*|ClientAliveCountMax 2|' /etc/ssh/sshd_config
- sed -i 's|^#MaxAuthTries .*|MaxAuthTries 2|' /etc/ssh/sshd_config
+ sed -i 's|^MaxAuthTries .*|MaxAuthTries 1|' /etc/ssh/sshd_config
sed -i 's|^#MaxSessions .*|MaxSessions 2|' /etc/ssh/sshd_config
sed -i 's|^#PermitRootLogin .*|PermitRootLogin no|' /etc/ssh/sshd_config
sed -i 's|^#TCPKeepAlive .*|TCPKeepAlive no|' /etc/ssh/sshd_config
- sed -i 's|^#X11Forwarding .*|X11Forwarding no|' /etc/ssh/sshd_config
+ sed -i 's|^X11Forwarding .*|X11Forwarding no|' /etc/ssh/sshd_config
+ sed -i 's|^#LogLevel .*|LogLevel VERBOSE|' /etc/ssh/sshd_config
+ sed -i 's|^#Compression .*|Compression no|' /etc/ssh/sshd_config
sed -i 's|^#AllowAgentForwarding .*|AllowAgentForwarding no|' /etc/ssh/sshd_config
## kernel hardening