privateone commited on
Commit
3e2d3bb
·
verified ·
1 Parent(s): 56b9e26

Update sshd_config

Browse files
Files changed (1) hide show
  1. sshd_config +6 -5
sshd_config CHANGED
@@ -31,7 +31,7 @@ LogLevel INFO
31
  # Authentication:
32
 
33
  #LoginGraceTime 2m
34
- PermitRootLogin yes
35
  #StrictModes yes
36
  #MaxAuthTries 6
37
  MaxSessions 4
@@ -39,7 +39,7 @@ MaxSessions 4
39
  #PubkeyAuthentication yes
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
 
@@ -59,7 +59,7 @@ AuthorizedKeysCommandUser *
59
 
60
  # To disable tunneled clear text passwords, change to no here!
61
  PasswordAuthentication yes
62
- PermitEmptyPasswords yes
63
 
64
  # Change to yes to enable challenge-response passwords (beware issues with
65
  # some PAM modules and threads)
@@ -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
@@ -124,4 +124,5 @@ Subsystem sftp /usr/lib/openssh/sftp-server
124
  # AllowTcpForwarding no
125
  # PermitTTY no
126
  # ForceCommand cvs server
127
- AllowUsers *
 
 
31
  # Authentication:
32
 
33
  #LoginGraceTime 2m
34
+ #PermitRootLogin prohibit-password
35
  #StrictModes yes
36
  #MaxAuthTries 6
37
  MaxSessions 4
 
39
  #PubkeyAuthentication yes
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
 
 
59
 
60
  # To disable tunneled clear text passwords, change to no here!
61
  PasswordAuthentication yes
62
+ #PermitEmptyPasswords yes
63
 
64
  # Change to yes to enable challenge-response passwords (beware issues with
65
  # some PAM modules and threads)
 
89
 
90
  UsePAM no
91
  #AllowAgentForwarding yes
92
+ AllowTcpForwarding no
93
  #GatewayPorts no
94
  X11Forwarding yes
95
  #X11DisplayOffset 10
 
124
  # AllowTcpForwarding no
125
  # PermitTTY no
126
  # ForceCommand cvs server
127
+
128
+ AllowUsers admin