]>
Commit | Line | Data |
---|---|---|
9cb1827b | 1 | # $OpenBSD: sshd_config,v 1.65 2003/08/28 12:54:34 markus Exp $ |
3c0ef626 | 2 | |
f5799ae1 | 3 | # This is the sshd server system-wide configuration file. See |
4 | # sshd_config(5) for more information. | |
3c0ef626 | 5 | |
e9a17296 | 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 | |
3c0ef626 | 14 | #Protocol 2,1 |
15 | #ListenAddress 0.0.0.0 | |
16 | #ListenAddress :: | |
17 | ||
18 | # HostKey for protocol version 1 | |
e9a17296 | 19 | #HostKey /etc/ssh/ssh_host_key |
3c0ef626 | 20 | # HostKeys for protocol version 2 |
e9a17296 | 21 | #HostKey /etc/ssh/ssh_host_rsa_key |
22 | #HostKey /etc/ssh/ssh_host_dsa_key | |
3c0ef626 | 23 | |
24 | # Lifetime and size of ephemeral version 1 server key | |
0fff78ff | 25 | #KeyRegenerationInterval 1h |
e9a17296 | 26 | #ServerKeyBits 768 |
3c0ef626 | 27 | |
28 | # Logging | |
3c0ef626 | 29 | #obsoletes QuietMode and FascistLogging |
e9a17296 | 30 | #SyslogFacility AUTH |
31 | #LogLevel INFO | |
3c0ef626 | 32 | |
33 | # Authentication: | |
34 | ||
0fff78ff | 35 | #LoginGraceTime 2m |
e9a17296 | 36 | #PermitRootLogin yes |
37 | #StrictModes yes | |
3c0ef626 | 38 | |
e9a17296 | 39 | #RSAAuthentication yes |
40 | #PubkeyAuthentication yes | |
41 | #AuthorizedKeysFile .ssh/authorized_keys | |
3c0ef626 | 42 | |
e9a17296 | 43 | # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts |
44 | #RhostsRSAAuthentication no | |
3c0ef626 | 45 | # similar for protocol version 2 |
e9a17296 | 46 | #HostbasedAuthentication no |
47 | # Change to yes if you don't trust ~/.ssh/known_hosts for | |
48 | # RhostsRSAAuthentication and HostbasedAuthentication | |
49 | #IgnoreUserKnownHosts no | |
0fff78ff | 50 | # Don't read the user's ~/.rhosts and ~/.shosts files |
51 | #IgnoreRhosts yes | |
3c0ef626 | 52 | |
53 | # To disable tunneled clear text passwords, change to no here! | |
e9a17296 | 54 | #PasswordAuthentication yes |
55 | #PermitEmptyPasswords no | |
3c0ef626 | 56 | |
e9a17296 | 57 | # Change to no to disable s/key passwords |
58 | #ChallengeResponseAuthentication yes | |
3c0ef626 | 59 | |
e9a17296 | 60 | # Kerberos options |
700318f3 | 61 | #KerberosAuthentication no |
3c0ef626 | 62 | #KerberosOrLocalPasswd yes |
e9a17296 | 63 | #KerberosTicketCleanup yes |
64 | ||
0fff78ff | 65 | # GSSAPI options |
66 | #GSSAPIAuthentication no | |
9cb1827b | 67 | #GSSAPICleanupCreds yes |
3c0ef626 | 68 | |
0fff78ff | 69 | # Set this to 'yes' to enable PAM authentication (via challenge-response) |
70 | # and session processing. Depending on your PAM configuration, this may | |
9cb1827b | 71 | # bypass the setting of 'PasswordAuthentication' |
72 | #UsePAM yes | |
3c0ef626 | 73 | |
0fff78ff | 74 | #AllowTcpForwarding yes |
75 | #GatewayPorts no | |
e9a17296 | 76 | #X11Forwarding no |
77 | #X11DisplayOffset 10 | |
78 | #X11UseLocalhost yes | |
79 | #PrintMotd yes | |
80 | #PrintLastLog yes | |
9cb1827b | 81 | #KeepAlive yes |
3c0ef626 | 82 | #UseLogin no |
f5799ae1 | 83 | #UsePrivilegeSeparation yes |
41b2f314 | 84 | #PermitUserEnvironment no |
f5799ae1 | 85 | #Compression yes |
0fff78ff | 86 | #ClientAliveInterval 0 |
87 | #ClientAliveCountMax 3 | |
88 | #UseDNS yes | |
89 | #PidFile /var/run/sshd.pid | |
e9a17296 | 90 | #MaxStartups 10 |
0fff78ff | 91 | |
e9a17296 | 92 | # no default banner path |
93 | #Banner /some/path | |
3c0ef626 | 94 | |
e9a17296 | 95 | # override default of no subsystems |
3c0ef626 | 96 | Subsystem sftp /usr/libexec/sftp-server |