sshd_config revision 1.17 1 # $NetBSD: sshd_config,v 1.17 2016/08/02 13:45:12 christos Exp $
2 # $OpenBSD: sshd_config,v 1.99 2016/07/11 03:19:44 tedu 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 #SyslogFacility AUTH
37 #LogLevel INFO
38
39 # Authentication:
40
41 #LoginGraceTime 2m
42 #PermitRootLogin prohibit-password
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 #AllowAgentForwarding yes
77 #AllowTcpForwarding yes
78 #GatewayPorts no
79 #X11Forwarding no
80 # If you use xorg from pkgsrc then uncomment the following line.
81 #XAuthLocation /usr/pkg/bin/xauth
82 #X11DisplayOffset 10
83 #X11UseLocalhost yes
84 #PermitTTY yes
85 #PrintMotd yes
86 #PrintLastLog yes
87 #TCPKeepAlive yes
88 #UseLogin no
89 #UsePrivilegeSeparation sandbox
90 UsePam yes
91 #PermitUserEnvironment no
92 #Compression delayed
93 #ClientAliveInterval 0
94 #ClientAliveCountMax 3
95 #UseDNS no
96 #PidFile /var/run/sshd.pid
97 #MaxStartups 10:30:100
98 #PermitTunnel no
99 #ChrootDirectory none
100 #VersionAddendum none
101
102 # no default banner path
103 #Banner none
104
105 # here are the new patched ldap related tokens
106 # entries in your LDAP must have posixAccount & ldapPublicKey objectclass
107 #UseLPK yes
108 #LpkLdapConf /etc/ldap.conf
109 #LpkServers ldap://10.1.7.1/ ldap://10.1.7.2/
110 #LpkUserDN ou=users,dc=phear,dc=org
111 #LpkGroupDN ou=groups,dc=phear,dc=org
112 #LpkBindDN cn=Manager,dc=phear,dc=org
113 #LpkBindPw secret
114 #LpkServerGroup mail
115 #LpkFilter (hostAccess=master.phear.org)
116 #LpkForceTLS no
117 #LpkSearchTimelimit 3
118 #LpkBindTimelimit 3
119 #LpkPubKeyAttr sshPublicKey
120
121 # override default of no subsystems
122 Subsystem sftp /usr/libexec/sftp-server
123
124 # the following are HPN related configuration options
125 # tcp receive buffer polling. disable in non autotuning kernels
126 #TcpRcvBufPoll yes
127
128 # allow the use of the none cipher
129 #NoneEnabled no
130
131 # disable hpn performance boosts.
132 #HPNDisabled no
133
134 # buffer size for hpn to non-hpn connections
135 #HPNBufferSize 2048
136
137
138 # Example of overriding settings on a per-user basis
139 #Match User anoncvs
140 # X11Forwarding no
141 # AllowTcpForwarding no
142 # PermitTTY no
143 # ForceCommand cvs server
144