diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-06-10 23:01:51 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-06-10 23:01:51 +1000 |
commit | e7140f20cb2da1456e6080059eef54cf0f3533f2 (patch) | |
tree | 7c4809d2dbb4b9e93599a2fb29c51a4621f88346 /sshd.8 | |
parent | b06cc4abf8e2eb4d1e14f19911a7e0afde50ee95 (diff) |
- dtucker@cvs.openbsd.org 2008/06/10 04:50:25
[sshd.c channels.h channels.c log.c servconf.c log.h servconf.h sshd.8]
Add extended test mode (-T) and connection parameters for test mode (-C).
-T causes sshd to write its effective configuration to stdout and exit.
-C causes any relevant Match rules to be applied before output. The
combination allows tesing of the parser and config files. ok deraadt djm
Diffstat (limited to 'sshd.8')
-rw-r--r-- | sshd.8 | 34 |
1 files changed, 31 insertions, 3 deletions
@@ -34,8 +34,8 @@ | |||
34 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 34 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
35 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 35 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
36 | .\" | 36 | .\" |
37 | .\" $OpenBSD: sshd.8,v 1.241 2008/03/27 22:37:57 jmc Exp $ | 37 | .\" $OpenBSD: sshd.8,v 1.242 2008/06/10 04:50:25 dtucker Exp $ |
38 | .Dd $Mdocdate: March 27 2008 $ | 38 | .Dd $Mdocdate: June 10 2008 $ |
39 | .Dt SSHD 8 | 39 | .Dt SSHD 8 |
40 | .Os | 40 | .Os |
41 | .Sh NAME | 41 | .Sh NAME |
@@ -44,8 +44,9 @@ | |||
44 | .Sh SYNOPSIS | 44 | .Sh SYNOPSIS |
45 | .Nm sshd | 45 | .Nm sshd |
46 | .Bk -words | 46 | .Bk -words |
47 | .Op Fl 46Ddeiqt | 47 | .Op Fl 46DTdeiqt |
48 | .Op Fl b Ar bits | 48 | .Op Fl b Ar bits |
49 | .Op Fl C Ar connection_spec | ||
49 | .Op Fl f Ar config_file | 50 | .Op Fl f Ar config_file |
50 | .Op Fl g Ar login_grace_time | 51 | .Op Fl g Ar login_grace_time |
51 | .Op Fl h Ar host_key_file | 52 | .Op Fl h Ar host_key_file |
@@ -197,6 +198,33 @@ Only check the validity of the configuration file and sanity of the keys. | |||
197 | This is useful for updating | 198 | This is useful for updating |
198 | .Nm | 199 | .Nm |
199 | reliably as configuration options may change. | 200 | reliably as configuration options may change. |
201 | .It Fl T | ||
202 | Extended test mode. | ||
203 | Check the validity of the configuration file, output the effective configuration | ||
204 | to stdout and then exit. | ||
205 | Optionally, | ||
206 | .Cm Match | ||
207 | rules may be applied by specifying the connection parameters using one or more | ||
208 | .Fl C | ||
209 | options. | ||
210 | .It Fl C | ||
211 | Specify the connection parameters to use for the the | ||
212 | .Fl T | ||
213 | extended test mode. | ||
214 | If provided, any | ||
215 | .Cm Match | ||
216 | directives in the configuration file | ||
217 | that would apply to the specified user, host and address will be set before | ||
218 | the configuration is written to standard output. | ||
219 | The connection parameters are supplied as keyword=value pairs. | ||
220 | The keywords are | ||
221 | .Dq user , | ||
222 | .Dq host | ||
223 | and | ||
224 | .Dq addr | ||
225 | All are required and may be supplied in any order, either with multiple | ||
226 | .Fl C | ||
227 | options or as a comma-separated list. | ||
200 | .It Fl u Ar len | 228 | .It Fl u Ar len |
201 | This option is used to specify the size of the field | 229 | This option is used to specify the size of the field |
202 | in the | 230 | in the |