diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ssh-keyscan.1 | 44 | ||||
-rw-r--r-- | ssh-keyscan.c | 4 |
3 files changed, 28 insertions, 25 deletions
@@ -15,6 +15,9 @@ | |||
15 | - jmc@cvs.openbsd.org 2005/03/01 15:05:00 | 15 | - jmc@cvs.openbsd.org 2005/03/01 15:05:00 |
16 | [ssh-keygen.1] | 16 | [ssh-keygen.1] |
17 | whitespace; | 17 | whitespace; |
18 | - jmc@cvs.openbsd.org 2005/03/01 15:47:14 | ||
19 | [ssh-keyscan.1 ssh-keyscan.c] | ||
20 | sort options and sync usage(); | ||
18 | 21 | ||
19 | 20050301 | 22 | 20050301 |
20 | - (djm) OpenBSD CVS sync: | 23 | - (djm) OpenBSD CVS sync: |
@@ -2234,4 +2237,4 @@ | |||
2234 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2237 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2235 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2238 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2236 | 2239 | ||
2237 | $Id: ChangeLog,v 1.3679 2005/03/02 01:03:43 djm Exp $ | 2240 | $Id: ChangeLog,v 1.3680 2005/03/02 01:04:01 djm Exp $ |
diff --git a/ssh-keyscan.1 b/ssh-keyscan.1 index 63427e727..7e846f77c 100644 --- a/ssh-keyscan.1 +++ b/ssh-keyscan.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ssh-keyscan.1,v 1.19 2005/03/01 10:41:28 djm Exp $ | 1 | .\" $OpenBSD: ssh-keyscan.1,v 1.20 2005/03/01 15:47:14 jmc Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. | 3 | .\" Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. |
4 | .\" | 4 | .\" |
@@ -15,11 +15,11 @@ | |||
15 | .Sh SYNOPSIS | 15 | .Sh SYNOPSIS |
16 | .Nm ssh-keyscan | 16 | .Nm ssh-keyscan |
17 | .Bk -words | 17 | .Bk -words |
18 | .Op Fl Hv46 | 18 | .Op Fl 46Hv |
19 | .Op Fl f Ar file | ||
19 | .Op Fl p Ar port | 20 | .Op Fl p Ar port |
20 | .Op Fl T Ar timeout | 21 | .Op Fl T Ar timeout |
21 | .Op Fl t Ar type | 22 | .Op Fl t Ar type |
22 | .Op Fl f Ar file | ||
23 | .Op Ar host | addrlist namelist | 23 | .Op Ar host | addrlist namelist |
24 | .Op Ar ... | 24 | .Op Ar ... |
25 | .Ek | 25 | .Ek |
@@ -46,6 +46,25 @@ scanning process involve any encryption. | |||
46 | .Pp | 46 | .Pp |
47 | The options are as follows: | 47 | The options are as follows: |
48 | .Bl -tag -width Ds | 48 | .Bl -tag -width Ds |
49 | .It Fl 4 | ||
50 | Forces | ||
51 | .Nm | ||
52 | to use IPv4 addresses only. | ||
53 | .It Fl 6 | ||
54 | Forces | ||
55 | .Nm | ||
56 | to use IPv6 addresses only. | ||
57 | .It Fl f Ar file | ||
58 | Read hosts or | ||
59 | .Pa addrlist namelist | ||
60 | pairs from this file, one per line. | ||
61 | If | ||
62 | .Pa - | ||
63 | is supplied instead of a filename, | ||
64 | .Nm | ||
65 | will read hosts or | ||
66 | .Pa addrlist namelist | ||
67 | pairs from the standard input. | ||
49 | .It Fl H | 68 | .It Fl H |
50 | Hash all hostnames and addresses in the output. | 69 | Hash all hostnames and addresses in the output. |
51 | Hashed names may be used normally by | 70 | Hashed names may be used normally by |
@@ -76,30 +95,11 @@ for protocol version 2. | |||
76 | Multiple values may be specified by separating them with commas. | 95 | Multiple values may be specified by separating them with commas. |
77 | The default is | 96 | The default is |
78 | .Dq rsa1 . | 97 | .Dq rsa1 . |
79 | .It Fl f Ar filename | ||
80 | Read hosts or | ||
81 | .Pa addrlist namelist | ||
82 | pairs from this file, one per line. | ||
83 | If | ||
84 | .Pa - | ||
85 | is supplied instead of a filename, | ||
86 | .Nm | ||
87 | will read hosts or | ||
88 | .Pa addrlist namelist | ||
89 | pairs from the standard input. | ||
90 | .It Fl v | 98 | .It Fl v |
91 | Verbose mode. | 99 | Verbose mode. |
92 | Causes | 100 | Causes |
93 | .Nm | 101 | .Nm |
94 | to print debugging messages about its progress. | 102 | to print debugging messages about its progress. |
95 | .It Fl 4 | ||
96 | Forces | ||
97 | .Nm | ||
98 | to use IPv4 addresses only. | ||
99 | .It Fl 6 | ||
100 | Forces | ||
101 | .Nm | ||
102 | to use IPv6 addresses only. | ||
103 | .El | 103 | .El |
104 | .Sh SECURITY | 104 | .Sh SECURITY |
105 | If a ssh_known_hosts file is constructed using | 105 | If a ssh_known_hosts file is constructed using |
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index e94867004..bc2c3b728 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c | |||
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | 9 | #include "includes.h" |
10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.51 2005/03/01 10:41:28 djm Exp $"); | 10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.52 2005/03/01 15:47:14 jmc Exp $"); |
11 | 11 | ||
12 | #include "openbsd-compat/sys-queue.h" | 12 | #include "openbsd-compat/sys-queue.h" |
13 | 13 | ||
@@ -683,7 +683,7 @@ fatal(const char *fmt,...) | |||
683 | static void | 683 | static void |
684 | usage(void) | 684 | usage(void) |
685 | { | 685 | { |
686 | fprintf(stderr, "usage: %s [-Hv46] [-p port] [-T timeout] [-t type] [-f file]\n" | 686 | fprintf(stderr, "usage: %s [-46Hv] [-f file] [-p port] [-T timeout] [-t type]\n" |
687 | "\t\t [host | addrlist namelist] [...]\n", | 687 | "\t\t [host | addrlist namelist] [...]\n", |
688 | __progname); | 688 | __progname); |
689 | exit(1); | 689 | exit(1); |