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