]>
Commit | Line | Data |
---|---|---|
87606687 JB |
1 | # This is the sshd server system-wide configuration file. See |
2 | # sshd_config(5) for more information. | |
3 | ||
4 | # The strategy used for options in the default sshd_config shipped with | |
5 | # OpenSSH is to specify options with their default value where | |
6 | # possible, but leave them commented. Uncommented options change a | |
7 | # default value. | |
cf3b46d6 AF |
8 | |
9 | Port 22 | |
4c299f69 AM |
10 | Protocol 2 |
11 | #Protocol 2,1 | |
3f1168a9 AM |
12 | #ListenAddress 0.0.0.0 |
13 | #ListenAddress :: | |
87606687 JB |
14 | |
15 | # HostKey for protocol version 1 | |
49b902b2 | 16 | #HostKey /etc/ssh/ssh_host_key |
87606687 JB |
17 | # HostKeys for protocol version 2 |
18 | #HostKey /etc/ssh/ssh_host_rsa_key | |
c94945b8 | 19 | #HostKey /etc/ssh/ssh_host_dsa_key |
87606687 JB |
20 | |
21 | # Lifetime and size of ephemeral version 1 server key | |
cf3b46d6 | 22 | KeyRegenerationInterval 3600 |
87606687 | 23 | ServerKeyBits 768 |
3f1168a9 AM |
24 | |
25 | # Logging | |
87606687 | 26 | #obsoletes QuietMode and FascistLogging |
3f1168a9 AM |
27 | SyslogFacility AUTH |
28 | LogLevel INFO | |
3f1168a9 | 29 | |
87606687 JB |
30 | # Authentication: |
31 | ||
32 | LoginGraceTime 600 | |
33 | PermitRootLogin no | |
34 | StrictModes yes | |
35 | ||
36 | RSAAuthentication yes | |
37 | #PubkeyAuthentication yes | |
38 | #AuthorizedKeysFile .ssh/authorized_keys | |
39 | ||
87606687 JB |
40 | # Don't read the user's ~/.rhosts and ~/.shosts files |
41 | IgnoreRhosts yes | |
3f1168a9 AM |
42 | # For this to work you will also need host keys in /etc/ssh_known_hosts |
43 | RhostsRSAAuthentication no | |
87606687 JB |
44 | # similar for protocol version 2 |
45 | #HostbasedAuthentication no | |
46 | # Change to yes if you don't trust ~/.ssh/known_hosts for | |
47 | # RhostsRSAAuthentication and HostbasedAuthentication | |
48 | #IgnoreUserKnownHosts no | |
3f1168a9 AM |
49 | |
50 | # To disable tunneled clear text passwords, change to no here! | |
cf3b46d6 | 51 | PasswordAuthentication yes |
3f1168a9 | 52 | PermitEmptyPasswords no |
3f1168a9 | 53 | |
87606687 JB |
54 | # Change to no to disable s/key passwords |
55 | #ChallengeResponseAuthentication yes | |
56 | ||
57 | # Kerberos options | |
3f1168a9 AM |
58 | #KerberosAuthentication no |
59 | #KerberosOrLocalPasswd yes | |
87606687 JB |
60 | #KerberosTicketCleanup yes |
61 | ||
3f1168a9 | 62 | #AFSTokenPassing no |
3f1168a9 | 63 | |
87606687 JB |
64 | # Kerberos TGT Passing only works with the AFS kaserver |
65 | #KerberosTgtPassing no | |
3f1168a9 | 66 | |
28c81c59 JR |
67 | # Set this to 'yes' to enable PAM authentication (via challenge-response) |
68 | # and session processing. Depending on your PAM configuration, this may | |
69 | # bypass the setting of 'PasswordAuthentication' | |
70 | UsePAM yes | |
87606687 | 71 | |
ea59aff7 | 72 | # Set this to 'yes' to enable support for chrooted user environment. |
73 | # You must create such environment before you can use this feature. | |
74 | #UseChroot yes | |
75 | ||
87606687 JB |
76 | X11Forwarding no |
77 | X11DisplayOffset 10 | |
78 | X11UseLocalhost yes | |
79 | PrintMotd yes | |
80 | #PrintLastLog yes | |
81 | KeepAlive yes | |
20cf0130 | 82 | UseLogin no |
2de8e69e AM |
83 | |
84 | # enabling this can cause some problems with for example pam_limit | |
85 | UsePrivilegeSeparation no | |
86 | ||
87606687 JB |
87 | #Compression yes |
88 | ||
89 | #MaxStartups 10 | |
90 | # no default banner path | |
91 | #Banner /some/path | |
92 | #VerifyReverseMapping no | |
93 | ||
94 | # override default of no subsystems | |
95 | #Subsystem sftp /usr/lib/openssh/sftp-server |