summaryrefslogtreecommitdiff
path: root/sshd.8
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-10 23:01:51 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-10 23:01:51 +1000
commite7140f20cb2da1456e6080059eef54cf0f3533f2 (patch)
tree7c4809d2dbb4b9e93599a2fb29c51a4621f88346 /sshd.8
parentb06cc4abf8e2eb4d1e14f19911a7e0afde50ee95 (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.834
1 files changed, 31 insertions, 3 deletions
diff --git a/sshd.8 b/sshd.8
index 750d64c3e..7274d0928 100644
--- a/sshd.8
+++ b/sshd.8
@@ -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.
197This is useful for updating 198This is useful for updating
198.Nm 199.Nm
199reliably as configuration options may change. 200reliably as configuration options may change.
201.It Fl T
202Extended test mode.
203Check the validity of the configuration file, output the effective configuration
204to stdout and then exit.
205Optionally,
206.Cm Match
207rules may be applied by specifying the connection parameters using one or more
208.Fl C
209options.
210.It Fl C
211Specify the connection parameters to use for the the
212.Fl T
213extended test mode.
214If provided, any
215.Cm Match
216directives in the configuration file
217that would apply to the specified user, host and address will be set before
218the configuration is written to standard output.
219The connection parameters are supplied as keyword=value pairs.
220The keywords are
221.Dq user ,
222.Dq host
223and
224.Dq addr
225All are required and may be supplied in any order, either with multiple
226.Fl C
227options or as a comma-separated list.
200.It Fl u Ar len 228.It Fl u Ar len
201This option is used to specify the size of the field 229This option is used to specify the size of the field
202in the 230in the