summaryrefslogtreecommitdiff
path: root/man/man8/monkeysphere-authentication.8
blob: d3d3b952fd8bf3702c9876bbc3d1445ddb24cfcc (plain)
  1. .TH MONKEYSPHERE-SERVER "8" "March 2009" "monkeysphere" "User Commands"
  2. .SH NAME
  3. monkeysphere\-authentication - Monkeysphere authentication admin tool.
  4. .SH SYNOPSIS
  5. .B monkeysphere\-authentication \fIsubcommand\fP [\fIargs\fP]
  6. .SH DESCRIPTION
  7. \fBMonkeysphere\fP is a framework to leverage the OpenPGP Web of Trust
  8. (WoT) for OpenSSH authentication. OpenPGP keys are tracked via GnuPG,
  9. and added to the authorized_keys and known_hosts files used by OpenSSH
  10. for connection authentication.
  11. \fBmonkeysphere\-authentication\fP is a Monkeysphere server admin
  12. utility for configuring and managing SSH user authentication through
  13. the WoT.
  14. .SH SUBCOMMANDS
  15. \fBmonkeysphere\-authentication\fP takes various subcommands:
  16. .TP
  17. .B update\-users [ACCOUNT]...
  18. Rebuild the monkeysphere-controlled authorized_keys files. For each
  19. specified account, the user ID's listed in the account's
  20. authorized_user_ids file are processed. For each user ID, gpg will be
  21. queried for keys associated with that user ID, optionally querying a
  22. keyserver. If an acceptable key is found (see KEY ACCEPTABILITY in
  23. monkeysphere(7)), the key is added to the account's
  24. monkeysphere-controlled authorized_keys file. If the
  25. RAW_AUTHORIZED_KEYS variable is set, then a separate authorized_keys
  26. file (usually ~USER/.ssh/authorized_keys) is appended to the
  27. monkeysphere-controlled authorized_keys file. If no accounts are
  28. specified, then all accounts on the system are processed. `u' may be
  29. used in place of `update\-users'.
  30. .TP
  31. .B add\-id\-certifier KEYID|FILE
  32. Instruct system to trust user identity certifications made by KEYID.
  33. The key ID will be loaded from the keyserver. A file may be loaded
  34. instead of pulling the key from the keyserver by specifying the path
  35. to the file as the argument, or by specifying `\-' to load from stdin.
  36. Using the `\-n' or `\-\-domain' option allows you to indicate that you
  37. only trust the given KEYID to make identifications within a specific
  38. domain (e.g. "trust KEYID to certify user identities within the
  39. @example.org domain"). A certifier trust level can be specified with
  40. the `\-t' or `\-\-trust' option (possible values are `marginal' and
  41. `full' (default is `full')). A certifier trust depth can be specified
  42. with the `\-d' or `\-\-depth' option (default is 1). `c+' may be used in
  43. place of `add\-id\-certifier'.
  44. .TP
  45. .B remove\-id\-certifier KEYID
  46. Instruct system to ignore user identity certifications made by KEYID.
  47. `c\-' may be used in place of `remove\-id\-certifier'.
  48. .TP
  49. .B list\-id\-certifiers
  50. List key IDs trusted by the system to certify user identities. `c'
  51. may be used in place of `list\-id\-certifiers'.
  52. .TP
  53. .B version
  54. Show the monkeysphere version number. `v' may be used in place of
  55. `version'.
  56. .TP
  57. .B help
  58. Output a brief usage summary. `h' or `?' may be used in place of
  59. `help'.
  60. Other commands:
  61. .TP
  62. .B setup
  63. Setup the server in preparation for Monkeysphere user authentication.
  64. This command is idempotent and run automatically by the other
  65. commands, and should therefore not usually need to be run manually.
  66. `s' may be used in place of `setup'.
  67. .TP
  68. .B diagnostics
  69. Review the state of the server with respect to authentication. `d'
  70. may be used in place of `diagnostics'.
  71. .TP
  72. .B gpg\-cmd
  73. Execute a gpg command, as the monkeysphere user, on the monkeysphere
  74. authentication `sphere' keyring. This takes a single argument
  75. (i.e. multiple gpg arguments need to be quoted all together). Use
  76. this command with caution, as modifying the authentication sphere
  77. keyring can affect ssh user authentication.
  78. .SH SETUP USER AUTHENTICATION
  79. If the server will handle user authentication through
  80. monkeysphere-generated authorized_keys files, the server must be told
  81. which keys will act as identity certifiers. This is done with the
  82. \fBadd\-id\-certifier\fP command:
  83. # monkeysphere\-authentication add\-id\-certifier KEYID
  84. where KEYID is the key ID of the server admin, or whoever's
  85. certifications should be acceptable to the system for the purposes of
  86. authenticating remote users. You can run this command multiple times
  87. to indicate that multiple certifiers are trusted. You may also
  88. specify a filename instead of a key ID, as long as the file contains a
  89. single OpenPGP public key. Certifiers can be removed with the
  90. \fBremove\-id\-certifier\fP command, and listed with the
  91. \fBlist\-id\-certifiers\fP command.
  92. A remote user will be granted access to a local account based on the
  93. appropriately-signed and valid keys associated with user IDs listed in
  94. that account's authorized_user_ids file. By default, the
  95. authorized_user_ids file for an account is
  96. ~/.monkeysphere/authorized_user_ids. This can be changed in the
  97. monkeysphere\-authentication.conf file.
  98. The \fBupdate\-users\fP command is used to generate authorized_keys
  99. files for a local account based on the user IDs listed in the
  100. account's authorized_user_ids file:
  101. # monkeysphere\-authentication update\-users USER
  102. Not specifying USER will cause all accounts on the system to updated.
  103. The ssh server can use these monkeysphere-generated authorized_keys
  104. files to grant access to user accounts for remote users. In order for
  105. sshd to look at the monkeysphere-generated authorized_keys file for
  106. user authentication, the AuthorizedKeysFile parameter must be set in
  107. the sshd_config to point to the monkeysphere\-generated
  108. authorized_keys files:
  109. AuthorizedKeysFile /var/lib/monkeysphere/authentication/authorized_keys/%u
  110. It is recommended to add "monkeysphere\-authentication update\-users"
  111. to a system crontab, so that user keys are kept up-to-date, and key
  112. revocations and expirations can be processed in a timely manner.
  113. .SH ENVIRONMENT
  114. The following environment variables will override those specified in
  115. the config file (defaults in parentheses):
  116. .TP
  117. MONKEYSPHERE_MONKEYSPHERE_USER
  118. User to control authentication keychain. (monkeysphere)
  119. .TP
  120. MONKEYSPHERE_LOG_LEVEL
  121. Set the log level. Can be SILENT, ERROR, INFO, VERBOSE, DEBUG, in
  122. increasing order of verbosity. (INFO)
  123. .TP
  124. MONKEYSPHERE_KEYSERVER
  125. OpenPGP keyserver to use. (pool.sks\-keyservers.net)
  126. .TP
  127. MONKEYSPHERE_AUTHORIZED_USER_IDS
  128. Path to user's authorized_user_ids file. %h gets replaced with the
  129. user's homedir, %u with the username.
  130. (%h/.monkeysphere/authorized_user_ids)
  131. .TP
  132. MONKEYSPHERE_RAW_AUTHORIZED_KEYS
  133. Path to regular ssh-style authorized_keys file to append to
  134. monkeysphere-generated authorized_keys. `none' means not to add any
  135. raw authorized_keys file. %h gets replaced with the user's homedir,
  136. %u with the username. (%h/.ssh/authorized_keys)
  137. .TP
  138. MONKEYSPHERE_PROMPT
  139. If set to `false', never prompt the user for confirmation. (true)
  140. .SH FILES
  141. .TP
  142. /etc/monkeysphere/monkeysphere\-authentication.conf
  143. System monkeysphere-authentication config file.
  144. .TP
  145. /var/lib/monkeysphere/authorized_keys/USER
  146. Monkeysphere-generated user authorized_keys files.
  147. .TP
  148. ~/.monkeysphere/authorized_user_ids
  149. A list of OpenPGP user IDs, one per line. OpenPGP keys with an
  150. exactly-matching User ID (calculated valid by the designated identity
  151. certifiers), will have any valid authorization-capable keys or subkeys
  152. added to the given user's authorized_keys file.
  153. .SH AUTHOR
  154. This man page was written by:
  155. Jameson Rollins <jrollins@fifthhorseman.net>,
  156. Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
  157. Matthew Goins <mjgoins@openflows.com>
  158. .SH SEE ALSO
  159. .BR monkeysphere (1),
  160. .BR monkeysphere\-host (8),
  161. .BR monkeysphere (7),
  162. .BR gpg (1),
  163. .BR ssh (1),
  164. .BR sshd (8),
  165. .BR sshd_config (5)