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