42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
--- a/sshd_config
|
|
+++ b/sshd_config
|
|
@@ -10,6 +10,11 @@
|
|
# possible, but leave them commented. Uncommented options override the
|
|
# default value.
|
|
|
|
+# To avoid conflicts with the packaged configuration, specify custom options
|
|
+# in drop-in files under /etc/ssh/sshd_config.d to override any defaults or
|
|
+# options set below.
|
|
+Include /etc/ssh/sshd_config.d/*.conf
|
|
+
|
|
#Port 22
|
|
#AddressFamily any
|
|
#ListenAddress 0.0.0.0
|
|
@@ -58,7 +63,7 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|
#PermitEmptyPasswords no
|
|
|
|
# Change to no to disable s/key passwords
|
|
-#KbdInteractiveAuthentication yes
|
|
+KbdInteractiveAuthentication no
|
|
|
|
# Kerberos options
|
|
#KerberosAuthentication no
|
|
@@ -79,7 +84,7 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|
# If you just want the PAM account and session checks to run without
|
|
# PAM authentication, then enable this but set PasswordAuthentication
|
|
# and KbdInteractiveAuthentication to 'no'.
|
|
-#UsePAM no
|
|
+UsePAM yes
|
|
|
|
#AllowAgentForwarding yes
|
|
#AllowTcpForwarding yes
|
|
@@ -88,7 +93,7 @@ AuthorizedKeysFile .ssh/authorized_keys
|
|
#X11DisplayOffset 10
|
|
#X11UseLocalhost yes
|
|
#PermitTTY yes
|
|
-#PrintMotd yes
|
|
+PrintMotd no
|
|
#PrintLastLog yes
|
|
#TCPKeepAlive yes
|
|
#PermitUserEnvironment no
|