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