- jmc@cvs.openbsd.org 2008/06/10 08:17:40

[sshd.8 sshd.c]
     - update usage()
     - fix SYNOPSIS, and sort options
     - some minor additional fixes
This commit is contained in:
Darren Tucker 2008-06-10 23:06:01 +10:00
parent 6a2a400f7a
commit e7f3f75651
3 changed files with 36 additions and 30 deletions

View File

@ -21,6 +21,11 @@
- jmc@cvs.openbsd.org 2008/06/10 07:12:00 - jmc@cvs.openbsd.org 2008/06/10 07:12:00
[sshd_config.5] [sshd_config.5]
tweak previous; tweak previous;
- jmc@cvs.openbsd.org 2008/06/10 08:17:40
[sshd.8 sshd.c]
- update usage()
- fix SYNOPSIS, and sort options
- some minor additional fixes
20080609 20080609
- (dtucker) OpenBSD CVS Sync - (dtucker) OpenBSD CVS Sync
@ -4107,4 +4112,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@ passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.4952 2008/06/10 13:03:04 dtucker Exp $ $Id: ChangeLog,v 1.4953 2008/06/10 13:06:01 dtucker Exp $

52
sshd.8
View File

@ -34,7 +34,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: sshd.8,v 1.242 2008/06/10 04:50:25 dtucker Exp $ .\" $OpenBSD: sshd.8,v 1.243 2008/06/10 08:17:40 jmc Exp $
.Dd $Mdocdate: June 10 2008 $ .Dd $Mdocdate: June 10 2008 $
.Dt SSHD 8 .Dt SSHD 8
.Os .Os
@ -44,7 +44,7 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm sshd .Nm sshd
.Bk -words .Bk -words
.Op Fl 46DTdeiqt .Op Fl 46DdeiqTt
.Op Fl b Ar bits .Op Fl b Ar bits
.Op Fl C Ar connection_spec .Op Fl C Ar connection_spec
.Op Fl f Ar config_file .Op Fl f Ar config_file
@ -101,6 +101,24 @@ to use IPv6 addresses only.
.It Fl b Ar bits .It Fl b Ar bits
Specifies the number of bits in the ephemeral protocol version 1 Specifies the number of bits in the ephemeral protocol version 1
server key (default 768). server key (default 768).
.It Fl C Ar connection_spec
Specify the connection parameters to use for the
.Fl T
extended test mode.
If provided, any
.Cm Match
directives in the configuration file
that would apply to the specified user, host, and address will be set before
the configuration is written to standard output.
The connection parameters are supplied as keyword=value pairs.
The keywords are
.Dq user ,
.Dq host ,
and
.Dq addr .
All are required and may be supplied in any order, either with multiple
.Fl C
options or as a comma-separated list.
.It Fl D .It Fl D
When this option is specified, When this option is specified,
.Nm .Nm
@ -192,12 +210,6 @@ Quiet mode.
Nothing is sent to the system log. Nothing is sent to the system log.
Normally the beginning, Normally the beginning,
authentication, and termination of each connection is logged. authentication, and termination of each connection is logged.
.It Fl t
Test mode.
Only check the validity of the configuration file and sanity of the keys.
This is useful for updating
.Nm
reliably as configuration options may change.
.It Fl T .It Fl T
Extended test mode. Extended test mode.
Check the validity of the configuration file, output the effective configuration Check the validity of the configuration file, output the effective configuration
@ -207,24 +219,12 @@ Optionally,
rules may be applied by specifying the connection parameters using one or more rules may be applied by specifying the connection parameters using one or more
.Fl C .Fl C
options. options.
.It Fl C .It Fl t
Specify the connection parameters to use for the the Test mode.
.Fl T Only check the validity of the configuration file and sanity of the keys.
extended test mode. This is useful for updating
If provided, any .Nm
.Cm Match reliably as configuration options may change.
directives in the configuration file
that would apply to the specified user, host and address will be set before
the configuration is written to standard output.
The connection parameters are supplied as keyword=value pairs.
The keywords are
.Dq user ,
.Dq host
and
.Dq addr
All are required and may be supplied in any order, either with multiple
.Fl C
options or as a comma-separated list.
.It Fl u Ar len .It Fl u Ar len
This option is used to specify the size of the field This option is used to specify the size of the field
in the in the

7
sshd.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: sshd.c,v 1.358 2008/06/10 04:50:25 dtucker Exp $ */ /* $OpenBSD: sshd.c,v 1.359 2008/06/10 08:17:40 jmc Exp $ */
/* /*
* Author: Tatu Ylonen <ylo@cs.hut.fi> * Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -804,8 +804,9 @@ usage(void)
fprintf(stderr, "%s, %s\n", fprintf(stderr, "%s, %s\n",
SSH_RELEASE, SSLeay_version(SSLEAY_VERSION)); SSH_RELEASE, SSLeay_version(SSLEAY_VERSION));
fprintf(stderr, fprintf(stderr,
"usage: sshd [-46Ddeiqt] [-b bits] [-f config_file] [-g login_grace_time]\n" "usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-f config_file]\n"
" [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]\n" " [-g login_grace_time] [-h host_key_file] [-k key_gen_time]\n"
" [-o option] [-p port] [-u len]\n"
); );
exit(1); exit(1);
} }