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