Annotation of src/usr.bin/ssh/sshd_config, Revision 1.101
1.101 ! djm 1: # $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy 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
1.83 dtucker 8: # possible, but leave them commented. Uncommented options override the
1.44 stevesk 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:
1.47 deraadt 16: #HostKey /etc/ssh/ssh_host_rsa_key
17: #HostKey /etc/ssh/ssh_host_dsa_key
1.82 naddy 18: #HostKey /etc/ssh/ssh_host_ecdsa_key
1.93 djm 19: #HostKey /etc/ssh/ssh_host_ed25519_key
1.40 markus 20:
1.90 dtucker 21: # Ciphers and keying
22: #RekeyLimit default none
1.13 markus 23:
24: # Logging
1.44 stevesk 25: #SyslogFacility AUTH
26: #LogLevel INFO
1.13 markus 27:
1.40 markus 28: # Authentication:
29:
1.61 djm 30: #LoginGraceTime 2m
1.97 deraadt 31: #PermitRootLogin prohibit-password
1.44 stevesk 32: #StrictModes yes
1.69 dtucker 33: #MaxAuthTries 6
1.79 djm 34: #MaxSessions 10
1.44 stevesk 35:
36: #PubkeyAuthentication yes
1.84 djm 37:
38: # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
39: # but this is overridden so installations will only check .ssh/authorized_keys
40: AuthorizedKeysFile .ssh/authorized_keys
1.86 djm 41:
42: #AuthorizedPrincipalsFile none
1.88 djm 43:
44: #AuthorizedKeysCommand none
45: #AuthorizedKeysCommandUser nobody
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: #HostbasedAuthentication no
49: # Change to yes if you don't trust ~/.ssh/known_hosts for
1.100 naddy 50: # HostbasedAuthentication
1.44 stevesk 51: #IgnoreUserKnownHosts no
1.63 markus 52: # Don't read the user's ~/.rhosts and ~/.shosts files
53: #IgnoreRhosts yes
1.6 deraadt 54:
55: # To disable tunneled clear text passwords, change to no here!
1.44 stevesk 56: #PasswordAuthentication yes
57: #PermitEmptyPasswords no
1.30 markus 58:
1.44 stevesk 59: # Change to no to disable s/key passwords
60: #ChallengeResponseAuthentication yes
1.1 deraadt 61:
1.78 pyr 62: #AllowAgentForwarding yes
1.61 djm 63: #AllowTcpForwarding yes
64: #GatewayPorts no
1.44 stevesk 65: #X11Forwarding no
66: #X11DisplayOffset 10
1.45 stevesk 67: #X11UseLocalhost yes
1.92 djm 68: #PermitTTY yes
1.44 stevesk 69: #PrintMotd yes
70: #PrintLastLog yes
1.68 millert 71: #TCPKeepAlive yes
1.6 deraadt 72: #UseLogin no
1.57 markus 73: #PermitUserEnvironment no
1.72 markus 74: #Compression delayed
1.61 djm 75: #ClientAliveInterval 0
76: #ClientAliveCountMax 3
1.94 deraadt 77: #UseDNS no
1.61 djm 78: #PidFile /var/run/sshd.pid
1.89 dtucker 79: #MaxStartups 10:30:100
1.73 reyk 80: #PermitTunnel no
1.77 djm 81: #ChrootDirectory none
1.85 djm 82: #VersionAddendum none
1.17 jakob 83:
1.44 stevesk 84: # no default banner path
1.76 djm 85: #Banner none
1.32 deraadt 86:
1.44 stevesk 87: # override default of no subsystems
1.32 deraadt 88: Subsystem sftp /usr/libexec/sftp-server
1.74 dtucker 89:
90: # Example of overriding settings on a per-user basis
91: #Match User anoncvs
92: # X11Forwarding no
93: # AllowTcpForwarding no
1.92 djm 94: # PermitTTY no
1.74 dtucker 95: # ForceCommand cvs server