privateone commited on
Commit
4f3ecae
·
verified ·
1 Parent(s): 8b901d1

Update sshd_config

Browse files
Files changed (1) hide show
  1. sshd_config +6 -6
sshd_config CHANGED
@@ -34,12 +34,12 @@ LogLevel INFO
34
  PermitRootLogin yes
35
  #StrictModes yes
36
  #MaxAuthTries 6
37
- #MaxSessions 10
38
 
39
  PubkeyAuthentication no
40
 
41
  # Expect .ssh/authorized_keys2 to be disregarded by default in future.
42
- AuthorizedKeysFile /home/admin/.ssh/authorized_keys .ssh/authorized_keys2
43
 
44
  #AuthorizedPrincipalsFile none
45
 
@@ -47,7 +47,7 @@ AuthorizedKeysFile /home/admin/.ssh/authorized_keys .ssh/authorized_keys2
47
  AuthorizedKeysCommandUser *
48
 
49
  # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
50
- #HostbasedAuthentication no
51
  #StrictHostKeyChecking no
52
 
53
  # Change to yes if you don't trust ~/.ssh/known_hosts for
@@ -89,7 +89,7 @@ ChallengeResponseAuthentication no
89
 
90
  UsePAM no
91
  #AllowAgentForwarding yes
92
- #AllowTcpForwarding yes
93
  #GatewayPorts no
94
  X11Forwarding yes
95
  #X11DisplayOffset 10
@@ -97,8 +97,8 @@ X11Forwarding yes
97
  #PermitTTY yes
98
  PrintMotd no
99
  #PrintLastLog yes
100
- #TCPKeepAlive yes
101
- #PermitUserEnvironment no
102
  #Compression delayed
103
  #ClientAliveInterval 0
104
  #ClientAliveCountMax 3
 
34
  PermitRootLogin yes
35
  #StrictModes yes
36
  #MaxAuthTries 6
37
+ MaxSessions 4
38
 
39
  PubkeyAuthentication no
40
 
41
  # Expect .ssh/authorized_keys2 to be disregarded by default in future.
42
+ AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
43
 
44
  #AuthorizedPrincipalsFile none
45
 
 
47
  AuthorizedKeysCommandUser *
48
 
49
  # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
50
+ HostbasedAuthentication yes
51
  #StrictHostKeyChecking no
52
 
53
  # Change to yes if you don't trust ~/.ssh/known_hosts for
 
89
 
90
  UsePAM no
91
  #AllowAgentForwarding yes
92
+ AllowTcpForwarding yes
93
  #GatewayPorts no
94
  X11Forwarding yes
95
  #X11DisplayOffset 10
 
97
  #PermitTTY yes
98
  PrintMotd no
99
  #PrintLastLog yes
100
+ TCPKeepAlive yes
101
+ PermitUserEnvironment yes
102
  #Compression delayed
103
  #ClientAliveInterval 0
104
  #ClientAliveCountMax 3