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