]>
Commit | Line | Data |
---|---|---|
760fc321 | 1 | # $OpenBSD: sshd_config,v 1.77 2008/02/08 23:24:07 djm Exp $ |
5b105785 | 2 | |
120de672 | 3 | # This is the sshd server system-wide configuration file. See |
4 | # sshd_config(5) for more information. | |
5b105785 | 5 | |
6 | # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
7 | ||
8 | # The strategy used for options in the default sshd_config shipped with | |
9 | # OpenSSH is to specify options with their default value where | |
10 | # possible, but leave them commented. Uncommented options change a | |
11 | # default value. | |
12 | ||
13 | #Port 22 | |
351aa434 | 14 | #AddressFamily any |
5b105785 | 15 | #ListenAddress 0.0.0.0 |
16 | #ListenAddress :: | |
17 | ||
e11c8e4c | 18 | # Disable legacy (protocol version 1) support in the server for new |
19 | # installations. In future the default will change to require explicit | |
20 | # activation of protocol 1 | |
21 | Protocol 2 | |
22 | ||
5b105785 | 23 | # HostKey for protocol version 1 |
24 | #HostKey /etc/ssh/ssh_host_key | |
25 | # HostKeys for protocol version 2 | |
26 | #HostKey /etc/ssh/ssh_host_rsa_key | |
27 | #HostKey /etc/ssh/ssh_host_dsa_key | |
28 | ||
29 | # Lifetime and size of ephemeral version 1 server key | |
da07627e | 30 | #KeyRegenerationInterval 1h |
5b105785 | 31 | #ServerKeyBits 768 |
32 | ||
33 | # Logging | |
351aa434 | 34 | # obsoletes QuietMode and FascistLogging |
5b105785 | 35 | #SyslogFacility AUTH |
36 | #LogLevel INFO | |
37 | ||
38 | # Authentication: | |
39 | ||
da07627e | 40 | #LoginGraceTime 2m |
5b105785 | 41 | #PermitRootLogin yes |
42 | #StrictModes yes | |
8acc5688 | 43 | #MaxAuthTries 6 |
5b105785 | 44 | |
45 | #RSAAuthentication yes | |
46 | #PubkeyAuthentication yes | |
47 | #AuthorizedKeysFile .ssh/authorized_keys | |
48 | ||
5b105785 | 49 | # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts |
50 | #RhostsRSAAuthentication no | |
51 | # similar for protocol version 2 | |
52 | #HostbasedAuthentication no | |
53 | # Change to yes if you don't trust ~/.ssh/known_hosts for | |
54 | # RhostsRSAAuthentication and HostbasedAuthentication | |
55 | #IgnoreUserKnownHosts no | |
da07627e | 56 | # Don't read the user's ~/.rhosts and ~/.shosts files |
57 | #IgnoreRhosts yes | |
5b105785 | 58 | |
59 | # To disable tunneled clear text passwords, change to no here! | |
60 | #PasswordAuthentication yes | |
61 | #PermitEmptyPasswords no | |
62 | ||
63 | # Change to no to disable s/key passwords | |
64 | #ChallengeResponseAuthentication yes | |
65 | ||
66 | # Kerberos options | |
67 | #KerberosAuthentication no | |
68 | #KerberosOrLocalPasswd yes | |
69 | #KerberosTicketCleanup yes | |
ec629a6d | 70 | #KerberosGetAFSToken no |
5b105785 | 71 | |
140715a2 | 72 | # Session hooks: if allowed, specify the commands to execute |
73 | #AllowSessionHooks yes | |
74 | #SessionHookStartupCmd /bin/true | |
75 | #SessionHookShutdownCmd /bin/true | |
76 | ||
da07627e | 77 | # GSSAPI options |
78 | #GSSAPIAuthentication yes | |
ec629a6d | 79 | #GSSAPICleanupCredentials yes |
20ba2feb | 80 | #GSSAPIStrictAcceptorCheck yes |
81 | #GSSAPIKeyExchange yes | |
da07627e | 82 | |
8acc5688 | 83 | # Set this to 'yes' to enable PAM authentication, account processing, |
84 | # and session processing. If this is enabled, PAM authentication will | |
20ba2feb | 85 | # be allowed through the ChallengeResponseAuthentication and |
86 | # PasswordAuthentication. Depending on your PAM configuration, | |
87 | # PAM authentication via ChallengeResponseAuthentication may bypass | |
88 | # the setting of "PermitRootLogin without-password". | |
89 | # If you just want the PAM account and session checks to run without | |
90 | # PAM authentication, then enable this but set PasswordAuthentication | |
91 | # and ChallengeResponseAuthentication to 'no'. | |
92 | #UsePAM yes | |
5b105785 | 93 | |
da07627e | 94 | #AllowTcpForwarding yes |
95 | #GatewayPorts no | |
0f988400 | 96 | X11Forwarding yes |
5b105785 | 97 | #X11DisplayOffset 10 |
98 | #X11UseLocalhost yes | |
99 | #PrintMotd yes | |
100 | #PrintLastLog yes | |
ec629a6d | 101 | #TCPKeepAlive yes |
5b105785 | 102 | #UseLogin no |
120de672 | 103 | #UsePrivilegeSeparation yes |
e8800bf1 | 104 | #PermitUserEnvironment no |
351aa434 | 105 | #Compression delayed |
da07627e | 106 | #ClientAliveInterval 0 |
107 | #ClientAliveCountMax 3 | |
108 | #UseDNS yes | |
109 | #PidFile /var/run/sshd.pid | |
5b105785 | 110 | #MaxStartups 10 |
bac30dae | 111 | #PermitTunnel no |
760fc321 | 112 | #ChrootDirectory none |
bac30dae | 113 | |
5b105785 | 114 | # no default banner path |
760fc321 | 115 | #Banner none |
5b105785 | 116 | |
20ba2feb | 117 | # override default of no subsystems |
118 | Subsystem sftp /usr/libexec/sftp-server | |
119 | ||
e11c8e4c | 120 | |
bac30dae | 121 | # the following are HPN related configuration options |
760fc321 | 122 | # tcp receive buffer polling. disable in non autotuning kernels |
123 | #TcpRcvBufPoll yes | |
20ba2feb | 124 | |
bac30dae | 125 | # allow the use of the none cipher |
126 | #NoneEnabled no | |
127 | ||
128 | # disable hpn performance boosts. | |
129 | #HPNDisabled no | |
130 | ||
760fc321 | 131 | # buffer size for hpn to non-hpn connections |
bac30dae | 132 | #HPNBufferSize 2048 |
133 | ||
20ba2feb | 134 | |
135 | # Example of overriding settings on a per-user basis | |
136 | #Match User anoncvs | |
137 | # X11Forwarding no | |
138 | # AllowTcpForwarding no | |
139 | # ForceCommand cvs server |