[BACK]Return to sshd_config CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/sshd_config, Revision 1.102

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