]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ssh/templates/sshd_config.erb
retire ravel
[dsa-puppet.git] / modules / ssh / templates / sshd_config.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 # Package generated configuration file
7 # See the sshd(8) manpage for details
8
9 # What ports, IPs and protocols we listen for
10 Port 22
11 <%= extraports = case fqdn
12                         when "paradis.debian.org" then "
13 ListenAddress 0.0.0.0:22
14 ListenAddress [::]:22
15 ListenAddress 5.153.231.31:443
16 ListenAddress [2001:41c8:1000:21::21:31]:443
17 "
18                  end
19 extraports
20 %>
21 # Use these options to restrict which interfaces/protocols sshd will bind to
22 #ListenAddress ::
23 #ListenAddress 0.0.0.0
24 Protocol 2
25 # HostKeys for protocol version 2
26 HostKey /etc/ssh/ssh_host_rsa_key
27 <%- if has_variable?("has_etc_ssh_ssh_host_ed25519_key") && has_etc_ssh_ssh_host_ed25519_key == "true" -%>
28 HostKey /etc/ssh/ssh_host_ed25519_key
29 <% end %>
30 #Privilege Separation is turned on for security
31 UsePrivilegeSeparation yes
32
33 # Lifetime and size of ephemeral version 1 server key
34 KeyRegenerationInterval 3600
35 ServerKeyBits 1024
36
37 # Logging
38 SyslogFacility AUTH
39 LogLevel INFO
40
41 # Authentication:
42 LoginGraceTime 120
43 PermitRootLogin without-password
44 StrictModes yes
45
46 RSAAuthentication yes
47 PubkeyAuthentication yes
48
49 # Don't read the user's ~/.rhosts and ~/.shosts files
50 IgnoreRhosts yes
51 # For this to work you will also need host keys in /etc/ssh_known_hosts
52 RhostsRSAAuthentication no
53 # similar for protocol version 2
54 HostbasedAuthentication no
55 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
56 #IgnoreUserKnownHosts yes
57
58 # To enable empty passwords, change to yes (NOT RECOMMENDED)
59 PermitEmptyPasswords no
60
61 # Change to yes to enable challenge-response passwords (beware issues with
62 # some PAM modules and threads)
63 ChallengeResponseAuthentication no
64
65 # Kerberos options
66 #KerberosAuthentication no
67 #KerberosGetAFSToken no
68 #KerberosOrLocalPasswd yes
69 #KerberosTicketCleanup yes
70
71 # GSSAPI options
72 #GSSAPIAuthentication no
73 #GSSAPICleanupCredentials yes
74
75 X11Forwarding no
76 X11DisplayOffset 10
77 PrintMotd no
78 PrintLastLog yes
79 TCPKeepAlive yes
80 #UseLogin no
81
82 #MaxStartups 10:30:60
83 #Banner /etc/issue.net
84
85 # Allow client to pass locale environment variables
86 AcceptEnv LANG LC_*
87
88 Subsystem sftp /usr/lib/openssh/sftp-server
89
90 UsePAM yes
91 <% if %w{squeeze}.include?(scope.lookupvar('::lsbdistcodename')) %>
92 AuthorizedKeysFile /etc/ssh/userkeys/%u
93 AuthorizedKeysFile2 /var/lib/misc/userkeys/%u
94 <% else %>
95 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
96 <% end %>
97 PasswordAuthentication no