|
@@ -1,7 +1,7 @@
|
|
# This file is managed by Puppet, all local modifications will be overwritten
|
|
# This file is managed by Puppet, all local modifications will be overwritten
|
|
#
|
|
#
|
|
# Package generated configuration file
|
|
# Package generated configuration file
|
|
-# See the sshd(8) manpage for details
|
|
|
|
|
|
+# See the sshd_config(5) manpage for details
|
|
|
|
|
|
<% unless (s=scope.lookupvar('sshd::head_additional_options')).empty? -%>
|
|
<% unless (s=scope.lookupvar('sshd::head_additional_options')).empty? -%>
|
|
<%= s %>
|
|
<%= s %>
|
|
@@ -24,27 +24,26 @@ Protocol 2
|
|
# HostKeys for protocol version 2
|
|
# HostKeys for protocol version 2
|
|
HostKey /etc/ssh/ssh_host_rsa_key
|
|
HostKey /etc/ssh/ssh_host_rsa_key
|
|
HostKey /etc/ssh/ssh_host_dsa_key
|
|
HostKey /etc/ssh/ssh_host_dsa_key
|
|
|
|
+HostKey /etc/ssh/ssh_host_ecdsa_key
|
|
|
|
+HostKey /etc/ssh/ssh_host_ed25519_key
|
|
#Privilege Separation is turned on for security
|
|
#Privilege Separation is turned on for security
|
|
UsePrivilegeSeparation yes
|
|
UsePrivilegeSeparation yes
|
|
|
|
|
|
# Lifetime and size of ephemeral version 1 server key
|
|
# Lifetime and size of ephemeral version 1 server key
|
|
KeyRegenerationInterval 3600
|
|
KeyRegenerationInterval 3600
|
|
-ServerKeyBits 768
|
|
|
|
|
|
+ServerKeyBits 1024
|
|
|
|
|
|
# Logging
|
|
# Logging
|
|
SyslogFacility AUTH
|
|
SyslogFacility AUTH
|
|
LogLevel INFO
|
|
LogLevel INFO
|
|
|
|
|
|
# Authentication:
|
|
# Authentication:
|
|
-LoginGraceTime 600
|
|
|
|
|
|
+LoginGraceTime 120
|
|
PermitRootLogin <%= scope.lookupvar('sshd::permit_root_login') %>
|
|
PermitRootLogin <%= scope.lookupvar('sshd::permit_root_login') %>
|
|
-
|
|
|
|
StrictModes <%= scope.lookupvar('sshd::strict_modes') %>
|
|
StrictModes <%= scope.lookupvar('sshd::strict_modes') %>
|
|
|
|
|
|
RSAAuthentication <%= scope.lookupvar('sshd::rsa_authentication') %>
|
|
RSAAuthentication <%= scope.lookupvar('sshd::rsa_authentication') %>
|
|
-
|
|
|
|
PubkeyAuthentication <%= scope.lookupvar('sshd::pubkey_authentication') %>
|
|
PubkeyAuthentication <%= scope.lookupvar('sshd::pubkey_authentication') %>
|
|
-
|
|
|
|
AuthorizedKeysFile <%= scope.lookupvar('sshd::authorized_keys_file') %>
|
|
AuthorizedKeysFile <%= scope.lookupvar('sshd::authorized_keys_file') %>
|
|
|
|
|
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
|
@@ -63,11 +62,12 @@ PermitEmptyPasswords <%= scope.lookupvar('sshd::permit_empty_passwords') %>
|
|
# some PAM modules and threads)
|
|
# some PAM modules and threads)
|
|
ChallengeResponseAuthentication <%= scope.lookupvar('sshd::challenge_response_authentication') %>
|
|
ChallengeResponseAuthentication <%= scope.lookupvar('sshd::challenge_response_authentication') %>
|
|
|
|
|
|
-# To disable tunneled clear text passwords, change to no here!
|
|
|
|
|
|
+# Change to no to disable tunnelled clear text passwords
|
|
PasswordAuthentication <%= scope.lookupvar('sshd::password_authentication') %>
|
|
PasswordAuthentication <%= scope.lookupvar('sshd::password_authentication') %>
|
|
|
|
|
|
# Kerberos options
|
|
# Kerberos options
|
|
KerberosAuthentication <%= scope.lookupvar('sshd::kerberos_authentication') %>
|
|
KerberosAuthentication <%= scope.lookupvar('sshd::kerberos_authentication') %>
|
|
|
|
+#KerberosGetAFSToken no
|
|
KerberosOrLocalPasswd <%= scope.lookupvar('sshd::kerberos_orlocalpasswd') %>
|
|
KerberosOrLocalPasswd <%= scope.lookupvar('sshd::kerberos_orlocalpasswd') %>
|
|
KerberosTicketCleanup <%= scope.lookupvar('sshd::kerberos_ticketcleanup') %>
|
|
KerberosTicketCleanup <%= scope.lookupvar('sshd::kerberos_ticketcleanup') %>
|
|
|
|
|
|
@@ -80,7 +80,6 @@ X11DisplayOffset 10
|
|
PrintMotd <%= scope.lookupvar('sshd::print_motd') %>
|
|
PrintMotd <%= scope.lookupvar('sshd::print_motd') %>
|
|
PrintLastLog yes
|
|
PrintLastLog yes
|
|
TCPKeepAlive yes
|
|
TCPKeepAlive yes
|
|
-
|
|
|
|
#UseLogin no
|
|
#UseLogin no
|
|
|
|
|
|
#MaxStartups 10:30:60
|
|
#MaxStartups 10:30:60
|