summaryrefslogtreecommitdiff
path: root/man/man8/monkeysphere-authentication.8
blob: 4187c701a6c5abeafa786f33104ffc8cf3db0b10 (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 diagnostics
  55. Review the state of the server with respect to authentication. `d'
  56. may be used in place of `diagnostics'.
  57. .TP
  58. .B gpg-cmd
  59. Execute a gpg command, as the monkeysphere user, on the monkeysphere
  60. authentication "sphere" keyring. This takes a single argument
  61. (multiple gpg arguments need to be quoted). Use this command with
  62. caution, as modifying the authentication sphere keyring can affect ssh
  63. user authentication.
  64. .TP
  65. .B help
  66. Output a brief usage summary. `h' or `?' may be used in place of
  67. `help'.
  68. .TP
  69. .B version
  70. show version number
  71. .SH SETUP USER AUTHENTICATION
  72. If the server will handle user authentication through
  73. monkeysphere-generated authorized_keys files, the server must be told
  74. which keys will act as identity certifiers. This is done with the
  75. \fBadd-id-certifier\fP command:
  76. $ monkeysphere-authentication add-id-certifier KEYID
  77. where KEYID is the key ID of the server admin, or whoever's
  78. certifications should be acceptable to the system for the purposes of
  79. authenticating remote users. You can run this command multiple times
  80. to indicate that multiple certifiers are trusted. You may also
  81. specify a filename instead of a key ID, as long as the file contains a
  82. single OpenPGP public key. Certifiers can be removed with the
  83. \fBremove-id-certifier\fP command, and listed with the
  84. \fBlist-id-certifiers\fP command.
  85. Remote users will then be granted access to a local account based on
  86. the appropriately-signed and valid keys associated with user IDs
  87. listed in that account's authorized_user_ids file. By default, the
  88. authorized_user_ids file for an account is
  89. ~/.monkeysphere/authorized_user_ids. This can be changed in the
  90. monkeysphere-authentication.conf file.
  91. The \fBupdate-users\fP command can then be used to generate
  92. authorized_keys file for local accounts based on the authorized user
  93. IDs listed in the account's authorized_user_ids file:
  94. $ monkeysphere-authentication update-users USER
  95. Not specifying USER will cause all accounts on the system to updated.
  96. sshd can then use these monkeysphere generated authorized_keys files
  97. to grant access to user accounts for remote users. You must also tell
  98. sshd to look at the monkeysphere-generated authorized_keys file for
  99. user authentication by setting the following in the sshd_config:
  100. AuthorizedKeysFile /var/lib/monkeysphere/authentication/authorized_keys/%u
  101. It is recommended to add "monkeysphere-authentication update-users" to a
  102. system crontab, so that user keys are kept up-to-date, and key
  103. revocations and expirations can be processed in a timely manner.
  104. .SH ENVIRONMENT
  105. The following environment variables will override those specified in
  106. the config file (defaults in parentheses):
  107. .TP
  108. MONKEYSPHERE_MONKEYSPHERE_USER
  109. User to control authentication keychain (monkeysphere).
  110. .TP
  111. MONKEYSPHERE_LOG_LEVEL
  112. Set the log level (INFO). Can be SILENT, ERROR, INFO, VERBOSE, DEBUG, in
  113. increasing order of verbosity.
  114. .TP
  115. MONKEYSPHERE_KEYSERVER
  116. OpenPGP keyserver to use (pool.sks-keyservers.net).
  117. .TP
  118. MONKEYSPHERE_AUTHORIZED_USER_IDS
  119. Path to user authorized_user_ids file
  120. (%h/.monkeysphere/authorized_user_ids).
  121. .TP
  122. MONKEYSPHERE_RAW_AUTHORIZED_KEYS
  123. Path to user-controlled authorized_keys file. `-' means not to add
  124. user-controlled file (%h/.ssh/authorized_keys).
  125. .SH FILES
  126. .TP
  127. /etc/monkeysphere/monkeysphere-authentication.conf
  128. System monkeysphere-authentication config file.
  129. .TP
  130. /var/lib/monkeysphere/authentication/authorized_keys/USER
  131. Monkeysphere-generated user authorized_keys files.
  132. .SH AUTHOR
  133. Written by:
  134. Jameson Rollins <jrollins@fifthhorseman.net>,
  135. Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
  136. Matthew Goins <mjgoins@openflows.com>
  137. .SH SEE ALSO
  138. .BR monkeysphere (1),
  139. .BR monkeysphere-host (8),
  140. .BR monkeysphere (7),
  141. .BR gpg (1),
  142. .BR ssh (1)