add man page for the ssh proxy command script. needs to be filled in.
[monkeysphere.git] / man / man1 / monkeysphere.1
1 .TH MONKEYSPHERE "1" "June 2008" "monkeysphere 0.1" "User Commands"
2 .SH NAME
3 monkeysphere \- MonkeySphere client user interface
4 .PD
5 .SH SYNOPSIS
6 .B monkeysphere \fIcommand\fP [\fIargs\fP]
7 .PD
8 .SH DESCRIPTION
9 .PP
10 MonkeySphere is a system to leverage the OpenPGP Web of Trust for ssh
11 authentication and encryption.  OpenPGP keys are tracked via GnuPG,
12 and added to the ssh authorized_keys and known_hosts files to be used
13 for authentication and encryption of ssh connection.
14
15 \fBmonkeysphere\fP is the MonkeySphere client utility.
16 .PD
17 .SH SUBCOMMANDS
18 \fBmonkeysphere\fP takes various subcommands:
19 .TP
20 .B update-known_hosts [HOST]...
21 Update the known_hosts file.  For each specified host, gpg will be
22 queried for a key associated with the host URI (see HOST URIs),
23 querying a keyserver if none is found in the user's keychain. search
24 for a gpg key for the host in the Web of Trust.  If a key is found, it
25 will be added to the host_keys cache (see KEY CACHES) and any ssh keys
26 for the host will be removed from the user's known_hosts file.  If the
27 found key is acceptable (see KEY ACCEPTABILITY), then the host's gpg
28 key will be added to the known_hosts file.  If no gpg key is found for
29 the host, then nothing is done.  If no hosts are specified, all hosts
30 listed in the known_hosts file will be processed.  `k' may be used in
31 place of `update-known_hosts'.
32 .TP
33 .B update-userids [USERID]...
34 Add/update a userid in the authorized_user_ids file.  The user IDs
35 specified should be exact matches to OpenPGP user IDs.  For each
36 specified user ID, gpg will be queried for a key associated with that
37 user ID, querying a keyserver if none is found in the user's keychain.
38 If a key is found, it will be added to the user_keys cache (see KEY
39 CACHES) and the user ID will be added to the user's
40 authorized_user_ids file (if it wasn't already present).
41 .TP
42 .B update-authorized_keys
43 Update the monkeysphere authorized_keys file.  The monkeysphere
44 authorized_keys file will be regenerated from the valid keys in the
45 user_key cache, and the user's independently controlled
46 authorized_keys file (usually ~/.ssh/authorized_keys).
47 .TP
48 .B gen-ae-subkey KEYID
49 Generate an `ae` capable subkey.  For the primary key with the
50 specified key ID, generate a subkey with "authentication" and
51 "encryption" capability that can be used for MonkeySphere
52 transactions.
53 .TP
54 .B help
55 Output a brief usage summary.  `h' or `?' may be used in place of
56 `help'.
57 .PD
58 .SH KEY ACCEPTABILITY
59 GPG keys are considered acceptable if the following criteria are met:
60 .PD
61 .TP
62 .B capability
63 The key must have both the "authentication" and "encrypt" capability
64 flags.
65 .TP
66 .B validity
67 The key must be "fully" valid, and must not be expired or revoked.
68 .PD
69 .SH KEY CACHES
70 Monkeysphere keeps track of keys in key cache directories.  The files
71 in the cache are named with the format "USERID_HASH.PUB_KEY_ID", where
72 USERID_HASH is a hash of the exact OpenPGP user ID, and PUB_KEY_ID is
73 the key ID of the primary key.  If the user/key ID combo exists in the
74 Web of Trust but is not acceptable, then the file is empty.  If the
75 primary key has at least one acceptable sub key, then an ssh-style
76 key, converted from the OpenPGP key, of all acceptable subkeys will be
77 stored in the cache file, one per line.  known_hosts style key lines
78 will be stored in the host_keys cache files, and authorized_keys style
79 key lines will be stored in the user_keys cache files.  OpenPGP keys
80 are converted to ssh-style keys with the openpgp2ssh utility (see `man
81 openpgp2ssh').
82 .PD
83 .SH FILES
84 .PD 1
85 .TP
86 ~/.config/monkeysphere/monkeysphere.conf
87 User monkeysphere config file.
88 .TP
89 /etc/monkeysphere/monkeysphere.conf
90 System-wide monkeysphere config file.
91 .TP
92 ~/.config/monkeysphere/authorized_user_ids
93 GPG user IDs associated with keys that will be checked for addition to
94 the authorized_keys file. 
95 .TP
96 ~/.config/monkeysphere/authorized_keys
97 Monkeysphere generated authorized_keys file.
98 .TP
99 ~/.config/monkeysphere/user_keys
100 User keys cache directory.
101 .TP
102 ~/.config/monkeysphere/host_keys
103 Host keys cache directory.
104 .PD
105 .SH AUTHOR
106 Written by Jameson Rollins <jrollins@fifthhorseman.net>
107 .PD
108 .SH SEE ALSO
109 .BR ssh (1),
110 .BR gpg (1),
111 .BR monkeysphere-server (8)