Home | History | Annotate | Line # | Download | only in dist
sshd_config revision 1.15
      1 #	$NetBSD: sshd_config,v 1.15 2015/08/13 10:33:21 christos Exp $
      2 #	$OpenBSD: sshd_config,v 1.97 2015/08/06 14:53:21 deraadt Exp $
      3 
      4 # This is the sshd server system-wide configuration file.  See
      5 # sshd_config(5) for more information.
      6 
      7 # The strategy used for options in the default sshd_config shipped with
      8 # OpenSSH is to specify options with their default value where
      9 # possible, but leave them commented.  Uncommented options override the
     10 # default value.
     11 
     12 #Port 22
     13 #AddressFamily any
     14 #ListenAddress 0.0.0.0
     15 #ListenAddress ::
     16 
     17 # The default requires explicit activation of protocol 1
     18 #Protocol 2
     19 
     20 # HostKey for protocol version 1
     21 #HostKey /etc/ssh/ssh_host_key
     22 # HostKeys for protocol version 2
     23 #HostKey /etc/ssh/ssh_host_rsa_key
     24 #HostKey /etc/ssh/ssh_host_dsa_key
     25 #HostKey /etc/ssh/ssh_host_ecdsa_key
     26 #HostKey /etc/ssh/ssh_host_ed25519_key
     27 
     28 # Lifetime and size of ephemeral version 1 server key
     29 #KeyRegenerationInterval 1h
     30 #ServerKeyBits 1024
     31 
     32 # Ciphers and keying
     33 #RekeyLimit default none
     34 
     35 # Logging
     36 # obsoletes QuietMode and FascistLogging
     37 #SyslogFacility AUTH
     38 #LogLevel INFO
     39 
     40 # Authentication:
     41 
     42 #LoginGraceTime 2m
     43 #PermitRootLogin prohibit-password
     44 #StrictModes yes
     45 #MaxAuthTries 6
     46 #MaxSessions 10
     47 
     48 #RSAAuthentication yes
     49 #PubkeyAuthentication yes
     50 
     51 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
     52 # but this is overridden so installations will only check .ssh/authorized_keys
     53 AuthorizedKeysFile	.ssh/authorized_keys
     54 
     55 #AuthorizedPrincipalsFile none
     56 
     57 #AuthorizedKeysCommand none
     58 #AuthorizedKeysCommandUser nobody
     59 
     60 # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
     61 #RhostsRSAAuthentication no
     62 # similar for protocol version 2
     63 #HostbasedAuthentication no
     64 # Change to yes if you don't trust ~/.ssh/known_hosts for
     65 # RhostsRSAAuthentication and HostbasedAuthentication
     66 #IgnoreUserKnownHosts no
     67 # Don't read the user's ~/.rhosts and ~/.shosts files
     68 #IgnoreRhosts yes
     69 
     70 # To disable password authentication, set this and UsePam to no
     71 #PasswordAuthentication yes
     72 #PermitEmptyPasswords no
     73 
     74 # Change to no to disable s/key passwords
     75 #ChallengeResponseAuthentication yes
     76 
     77 #AllowAgentForwarding yes
     78 #AllowTcpForwarding yes
     79 #GatewayPorts no
     80 #X11Forwarding no
     81 # If you use xorg from pkgsrc then uncomment the following line.
     82 #XAuthLocation /usr/pkg/bin/xauth
     83 #X11DisplayOffset 10
     84 #X11UseLocalhost yes
     85 #PermitTTY yes
     86 #PrintMotd yes
     87 #PrintLastLog yes
     88 #TCPKeepAlive yes
     89 #UseLogin no
     90 UsePrivilegeSeparation sandbox
     91 UsePam yes
     92 #PermitUserEnvironment no
     93 #Compression delayed
     94 #ClientAliveInterval 0
     95 #ClientAliveCountMax 3
     96 #UseDNS no
     97 #PidFile /var/run/sshd.pid
     98 #MaxStartups 10:30:100
     99 #PermitTunnel no
    100 #ChrootDirectory none
    101 #VersionAddendum none
    102 
    103 # no default banner path
    104 #Banner none
    105 
    106 # here are the new patched ldap related tokens
    107 # entries in your LDAP must have posixAccount & ldapPublicKey objectclass
    108 #UseLPK yes
    109 #LpkLdapConf /etc/ldap.conf
    110 #LpkServers  ldap://10.1.7.1/ ldap://10.1.7.2/
    111 #LpkUserDN   ou=users,dc=phear,dc=org
    112 #LpkGroupDN  ou=groups,dc=phear,dc=org
    113 #LpkBindDN cn=Manager,dc=phear,dc=org
    114 #LpkBindPw secret
    115 #LpkServerGroup mail
    116 #LpkFilter (hostAccess=master.phear.org)
    117 #LpkForceTLS no
    118 #LpkSearchTimelimit 3
    119 #LpkBindTimelimit 3
    120 #LpkPubKeyAttr sshPublicKey
    121 
    122 # override default of no subsystems
    123 Subsystem	sftp	/usr/libexec/sftp-server
    124 
    125 # the following are HPN related configuration options
    126 # tcp receive buffer polling. disable in non autotuning kernels
    127 #TcpRcvBufPoll yes
    128 
    129 # allow the use of the none cipher
    130 #NoneEnabled no
    131 
    132 # disable hpn performance boosts.
    133 #HPNDisabled no
    134 
    135 # buffer size for hpn to non-hpn connections
    136 #HPNBufferSize 2048
    137 
    138 
    139 # Example of overriding settings on a per-user basis
    140 #Match User anoncvs
    141 #	X11Forwarding no
    142 #	AllowTcpForwarding no
    143 #	PermitTTY no
    144 #	ForceCommand cvs server
    145