diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2020-11-27 14:49:55 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2020-11-27 14:49:55 +0000 |
commit | ab3593ca5fcae7ced8e597947d957aa277a72612 (patch) | |
tree | 8df508519a97dcdc4bcbf73c8755d03fc0c83d43 | |
parent | 016b1e883b6341bdb9a663eb562053ab96c278d5 (diff) |
wg(4): show an actual command to retrieve wgpubkey to go with the text which
says "shown in the status output of the interface"; this makes it clear that
1) ifconfig is used, 2) the interface must be specified (either that or -A;
it is not shown in the default output with no parameters), and 3) hints that
it must be run as root. ok jmc@
-rw-r--r-- | share/man/man4/wg.4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4 index a591312698c..56fef5eff41 100644 --- a/share/man/man4/wg.4 +++ b/share/man/man4/wg.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wg.4,v 1.7 2020/11/27 14:04:49 sthen Exp $ +.\" $OpenBSD: wg.4,v 1.8 2020/11/27 14:49:54 sthen Exp $ .\" Copyright (c) 2020 Matt Dunwoodie <ncon@noconroy.net> .\" .\" Permission to use, copy, modify, and distribute this software for any @@ -125,8 +125,9 @@ When an interface has a private key set with .Nm wgkey , the corresponding public key is shown in the status output of the interface, like so: -.Bd -literal -offset indent -wgpubkey NW5l2q2MArV5ZXpVXSZwBOyqhohOf8ImDgUB+jPtJps= +.Bd -literal +# ifconfig wg1 | grep wgpubkey + wgpubkey NW5l2q2MArV5ZXpVXSZwBOyqhohOf8ImDgUB+jPtJps= .Ed .Sh EXAMPLES Create two |