Annotation of src/usr.bin/ssh/sshd_config, Revision 1.77
1.77 ! djm 1: # $OpenBSD: sshd_config,v 1.76 2007/08/23 03:22:16 djm Exp $
1.27 niklas 2:
1.55 stevesk 3: # This is the sshd server system-wide configuration file. See
4: # sshd_config(5) for more information.
1.1 deraadt 5:
1.48 deraadt 6: # The strategy used for options in the default sshd_config shipped with
1.44 stevesk 7: # OpenSSH is to specify options with their default value where
8: # possible, but leave them commented. Uncommented options change a
9: # default value.
10:
11: #Port 22
1.70 djm 12: #AddressFamily any
1.15 markus 13: #ListenAddress 0.0.0.0
14: #ListenAddress ::
1.75 djm 15:
16: # Disable legacy (protocol version 1) support in the server for new
17: # installations. In future the default will change to require explicit
18: # activation of protocol 1
19: Protocol 2
1.40 markus 20:
21: # HostKey for protocol version 1
1.47 deraadt 22: #HostKey /etc/ssh/ssh_host_key
1.40 markus 23: # HostKeys for protocol version 2
1.47 deraadt 24: #HostKey /etc/ssh/ssh_host_rsa_key
25: #HostKey /etc/ssh/ssh_host_dsa_key
1.40 markus 26:
27: # Lifetime and size of ephemeral version 1 server key
1.61 djm 28: #KeyRegenerationInterval 1h
1.44 stevesk 29: #ServerKeyBits 768
1.13 markus 30:
31: # Logging
1.71 djm 32: # obsoletes QuietMode and FascistLogging
1.44 stevesk 33: #SyslogFacility AUTH
34: #LogLevel INFO
1.13 markus 35:
1.40 markus 36: # Authentication:
37:
1.61 djm 38: #LoginGraceTime 2m
1.44 stevesk 39: #PermitRootLogin yes
40: #StrictModes yes
1.69 dtucker 41: #MaxAuthTries 6
1.44 stevesk 42:
43: #RSAAuthentication yes
44: #PubkeyAuthentication yes
45: #AuthorizedKeysFile .ssh/authorized_keys
1.40 markus 46:
1.47 deraadt 47: # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
1.44 stevesk 48: #RhostsRSAAuthentication no
1.36 markus 49: # similar for protocol version 2
1.44 stevesk 50: #HostbasedAuthentication no
51: # Change to yes if you don't trust ~/.ssh/known_hosts for
52: # RhostsRSAAuthentication and HostbasedAuthentication
53: #IgnoreUserKnownHosts no
1.63 markus 54: # Don't read the user's ~/.rhosts and ~/.shosts files
55: #IgnoreRhosts yes
1.6 deraadt 56:
57: # To disable tunneled clear text passwords, change to no here!
1.44 stevesk 58: #PasswordAuthentication yes
59: #PermitEmptyPasswords no
1.30 markus 60:
1.44 stevesk 61: # Change to no to disable s/key passwords
62: #ChallengeResponseAuthentication yes
1.6 deraadt 63:
1.44 stevesk 64: # Kerberos options
1.51 markus 65: #KerberosAuthentication no
1.1 deraadt 66: #KerberosOrLocalPasswd yes
1.44 stevesk 67: #KerberosTicketCleanup yes
1.67 jakob 68: #KerberosGetAFSToken no
1.64 markus 69:
70: # GSSAPI options
71: #GSSAPIAuthentication no
1.66 markus 72: #GSSAPICleanupCredentials yes
1.1 deraadt 73:
1.61 djm 74: #AllowTcpForwarding yes
75: #GatewayPorts no
1.44 stevesk 76: #X11Forwarding no
77: #X11DisplayOffset 10
1.45 stevesk 78: #X11UseLocalhost yes
1.44 stevesk 79: #PrintMotd yes
80: #PrintLastLog yes
1.68 millert 81: #TCPKeepAlive yes
1.6 deraadt 82: #UseLogin no
1.54 markus 83: #UsePrivilegeSeparation yes
1.57 markus 84: #PermitUserEnvironment no
1.72 markus 85: #Compression delayed
1.61 djm 86: #ClientAliveInterval 0
87: #ClientAliveCountMax 3
88: #UseDNS yes
89: #PidFile /var/run/sshd.pid
90: #MaxStartups 10
1.73 reyk 91: #PermitTunnel no
1.77 ! djm 92: #ChrootDirectory none
1.17 jakob 93:
1.44 stevesk 94: # no default banner path
1.76 djm 95: #Banner none
1.32 deraadt 96:
1.44 stevesk 97: # override default of no subsystems
1.32 deraadt 98: Subsystem sftp /usr/libexec/sftp-server
1.74 dtucker 99:
100: # Example of overriding settings on a per-user basis
101: #Match User anoncvs
102: # X11Forwarding no
103: # AllowTcpForwarding no
104: # ForceCommand cvs server