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