forked from dublinbranch/serverConfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsshd.patch
38 lines (34 loc) · 972 Bytes
/
sshd.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff --git a/ssh/sshd_config b/ssh/sshd_config
index 173923d..8d838ae 100644
--- a/ssh/sshd_config
+++ b/ssh/sshd_config
@@ -10,7 +10,7 @@
# possible, but leave them commented. Uncommented options override the
# default value.
-#Port 22
+Port 1022
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
@@ -54,11 +54,11 @@ AuthorizedKeysFile .ssh/authorized_keys
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
-#PasswordAuthentication yes
+PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
-#ChallengeResponseAuthentication yes
+ChallengeResponseAuthentication no
# Kerberos options
#KerberosAuthentication no
@@ -95,8 +95,8 @@ X11Forwarding yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
-#ClientAliveInterval 0
-#ClientAliveCountMax 3
+ClientAliveInterval 120
+ClientAliveCountMax 720
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100