modify import_key to take the key file to import as an argument. can be '-' to impor...
[monkeysphere.git] / man / man8 / monkeysphere-host.8
1 .TH MONKEYSPHERE-SERVER "8" "June 2008" "monkeysphere" "User Commands"
2
3 .SH NAME
4
5 monkeysphere-host \- Monkeysphere host admin tool.
6
7 .SH SYNOPSIS
8
9 .B monkeysphere-host \fIsubcommand\fP [\fIargs\fP]
10 .br
11 .B monkeysphere-host expert \fIexpert-subcommand\fP [\fIargs\fP]
12
13 .SH DESCRIPTION
14
15 \fBMonkeysphere\fP is a framework to leverage the OpenPGP web of trust
16 for OpenSSH authentication.  OpenPGP keys are tracked via GnuPG, and
17 added to the authorized_keys and known_hosts files used by OpenSSH for
18 connection authentication.
19
20 \fBmonkeysphere-host\fP is a Monkeysphere server admin utility.
21
22 .SH SUBCOMMANDS
23
24 \fBmonkeysphere-host\fP takes various subcommands:
25 .TP
26 .B import-key FILE [NAME[:PORT]]
27 Import a pem-encoded ssh secret host key from file FILE.  If FILE
28 is '-', then the key will be imported from stdin.  NAME[:PORT] is used
29 to specify the hostname (and port) used in the user ID of the new
30 OpenPGP key.  If NAME is not specified, then the system
31 fully-qualified domain name will be used (ie. `hostname -f').  If PORT
32 is not specified, the no port is added to the user ID, which means
33 port 22 is assumed.  `i' may be used in place of `import-key'.
34 .TP
35 .B show-key
36 Output information about host's OpenPGP and SSH keys.  `s' may be used
37 in place of `show-key'.
38 .TP
39 .B extend-key [EXPIRE]
40 Extend the validity of the OpenPGP key for the host until EXPIRE from
41 the present.  If EXPIRE is not specified, then the user will be
42 prompted for the extension term.  Expiration is specified as with
43 GnuPG:
44 .nf
45          0 = key does not expire
46       <n>  = key expires in n days
47       <n>w = key expires in n weeks
48       <n>m = key expires in n months
49       <n>y = key expires in n years
50 .fi
51 `e' may be used in place of `extend-key'.
52 .TP
53 .B add-hostname HOSTNAME
54 Add a hostname user ID to the server host key.  `n+' may be used in
55 place of `add-hostname'.
56 .TP
57 .B revoke-hostname HOSTNAME
58 Revoke a hostname user ID from the server host key.  `n-' may be used
59 in place of `revoke-hostname'.
60 .TP
61 .B add-revoker FINGERPRINT
62 Add a revoker to the host's OpenPGP key.  `o' may be be used in place
63 of `add-revoker'.
64 .TP
65 .B revoke-key
66 Revoke the host's OpenPGP key.  `r' may be used in place of
67 `revoke-key'.
68 .TP
69 .B publish-key
70 Publish the host's OpenPGP key to the keyserver.  `p' may be used in
71 place of `publish-key'.
72 .TP
73 .B help
74 Output a brief usage summary.  `h' or `?' may be used in place of
75 `help'.
76 .TP
77 .B version
78 show version number
79
80
81 Other commands:
82 .TP
83 .B diagnostics
84 Review the state of the monkeysphere server host key and report on
85 suggested changes.  Among other checks, this includes making sure
86 there is a valid host key, that the key is published, that the sshd
87 configuration points to the right place, etc.  `d' may be used in
88 place of `diagnostics'.
89
90 .SH SETUP HOST AUTHENTICATION
91
92 To enable host verification via the monkeysphere, the host's key must
93 be published to the Web of Trust.  This is not done by default.  To
94 publish the host key to the keyservers, run the following command:
95
96 $ monkeysphere-host publish-key
97
98 In order for users logging into the system to be able to identify the
99 host via the monkeysphere, at least one person (e.g. a server admin)
100 will need to sign the host's key.  This is done using standard OpenPGP
101 keysigning techniques, usually: pull the key from the keyserver,
102 verify and sign the key, and then re-publish the signature.  Once an
103 admin's signature is published, users logging into the host can use it
104 to validate the host's key.
105
106 .SH ENVIRONMENT
107
108 The following environment variables will override those specified in
109 the config file (defaults in parentheses):
110 .TP
111 MONKEYSPHERE_LOG_LEVEL
112 Set the log level (INFO).  Can be SILENT, ERROR, INFO, VERBOSE, DEBUG, in
113 increasing order of verbosity.
114 .TP
115 MONKEYSPHERE_KEYSERVER
116 OpenPGP keyserver to use (pool.sks-keyservers.net).
117 .TP
118 MONKEYSPHERE_PROMPT
119 If set to `false', never prompt the user for confirmation. (true)
120
121
122 .SH FILES
123
124 .TP
125 /etc/monkeysphere/monkeysphere-host.conf
126 System monkeysphere-host config file.
127 .TP
128 /var/lib/monkeysphere/host/ssh_host_rsa_key
129 Copy of the host's private key in ssh format, suitable for use by
130 sshd.
131
132 .SH AUTHOR
133
134 Written by:
135 Jameson Rollins <jrollins@fifthhorseman.net>,
136 Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
137 Matthew Goins <mjgoins@openflows.com>
138
139 .SH SEE ALSO
140
141 .BR monkeysphere (1),
142 .BR monkeysphere-authentication (8),
143 .BR monkeysphere (7),
144 .BR gpg (1),
145 .BR ssh (1)