Annotation of src/crypto/dist/ssh/sshd_config, Revision 1.26
1.26 ! jnemeth 1: # $NetBSD: sshd_config,v 1.25 2006/10/15 14:01:53 adrianp Exp $
1.24 christos 2: # $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
1.1 itojun 3:
1.15 itojun 4: # This is the sshd server system-wide configuration file. See
5: # sshd_config(5) for more information.
1.1 itojun 6:
1.10 itojun 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
1.25 adrianp 13: Protocol 2
1.22 christos 14: #AddressFamily any
1.1 itojun 15: #ListenAddress 0.0.0.0
16: #ListenAddress ::
1.7 itojun 17:
18: # HostKey for protocol version 1
1.11 itojun 19: #HostKey /etc/ssh/ssh_host_key
1.7 itojun 20: # HostKeys for protocol version 2
1.11 itojun 21: #HostKey /etc/ssh/ssh_host_rsa_key
22: #HostKey /etc/ssh/ssh_host_dsa_key
1.7 itojun 23:
24: # Lifetime and size of ephemeral version 1 server key
1.20 christos 25: #KeyRegenerationInterval 1h
1.10 itojun 26: #ServerKeyBits 768
1.1 itojun 27:
28: # Logging
1.23 christos 29: # obsoletes QuietMode and FascistLogging
1.10 itojun 30: #SyslogFacility AUTH
31: #LogLevel INFO
1.1 itojun 32:
1.7 itojun 33: # Authentication:
34:
1.19 jonb 35: # Slow machines or long keys may require more processing time.
36: LoginGraceTime 600
1.10 itojun 37: #PermitRootLogin no
38: #StrictModes yes
1.20 christos 39: #MaxAuthTries 6
1.10 itojun 40:
41: #RSAAuthentication yes
42: #PubkeyAuthentication yes
43: #AuthorizedKeysFile .ssh/authorized_keys
1.7 itojun 44:
1.11 itojun 45: # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
1.10 itojun 46: #RhostsRSAAuthentication no
1.5 itojun 47: # similar for protocol version 2
1.10 itojun 48: #HostbasedAuthentication no
49: # Change to yes if you don't trust ~/.ssh/known_hosts for
50: # RhostsRSAAuthentication and HostbasedAuthentication
51: #IgnoreUserKnownHosts no
1.20 christos 52: # Don't read the user's ~/.rhosts and ~/.shosts files
53: #IgnoreRhosts yes
1.1 itojun 54:
55: # To disable tunneled clear text passwords, change to no here!
1.10 itojun 56: #PasswordAuthentication yes
57: #PermitEmptyPasswords no
1.1 itojun 58:
1.10 itojun 59: # Change to no to disable s/key passwords
60: #ChallengeResponseAuthentication yes
1.1 itojun 61:
1.10 itojun 62: # Kerberos options
1.13 itojun 63: #KerberosAuthentication no
1.1 itojun 64: #KerberosOrLocalPasswd yes
1.10 itojun 65: #KerberosTicketCleanup yes
1.20 christos 66: #KerberosGetAFSToken no
1.1 itojun 67:
1.20 christos 68: # GSSAPI options
69: #GSSAPIAuthentication no
70: #GSSAPICleanupCredentials yes
1.1 itojun 71:
1.20 christos 72: #AllowTcpForwarding yes
73: #GatewayPorts no
1.10 itojun 74: #X11Forwarding no
1.26 ! jnemeth 75: # If you xorg from pkgsrc then uncomment the following line.
! 76: #XAuthLocation /usr/pkg/bin/xauth
1.10 itojun 77: #X11DisplayOffset 10
78: #X11UseLocalhost yes
79: #PrintMotd yes
80: #PrintLastLog yes
1.20 christos 81: #TCPKeepAlive yes
1.1 itojun 82: #UseLogin no
1.14 itojun 83: #UsePrivilegeSeparation yes
1.21 christos 84: UsePam yes
1.16 itojun 85: #PermitUserEnvironment no
1.23 christos 86: #Compression delayed
1.20 christos 87: #ClientAliveInterval 0
88: #ClientAliveCountMax 3
89: #UseDNS yes
90: #PidFile /var/run/sshd.pid
91: #MaxStartups 10
1.23 christos 92: #PermitTunnel no
1.1 itojun 93:
1.10 itojun 94: # no default banner path
95: #Banner /some/path
1.1 itojun 96:
1.10 itojun 97: # override default of no subsystems
1.1 itojun 98: Subsystem sftp /usr/libexec/sftp-server
1.24 christos 99:
100: # Example of overriding settings on a per-user basis
101: #Match User anoncvs
102: # X11Forwarding no
103: # AllowTcpForwarding no
104: # ForceCommand cvs server
CVSweb <webmaster@jp.NetBSD.org>