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