summaryrefslogtreecommitdiff
path: root/man/man8/monkeysphere-server.8
blob: 0e699b93a90e53bd3017746d2500a352d1c71762 (plain)
  1. .TH MONKEYSPHERE-SERVER "1" "June 2008" "monkeysphere" "User Commands"
  2. .SH NAME
  3. monkeysphere-server \- monkeysphere server admin user interface
  4. .SH SYNOPSIS
  5. .B monkeysphere-server \fIsubcommand\fP [\fIargs\fP]
  6. .SH DESCRIPTION
  7. \fBMonkeySphere\fP is a framework to leverage the OpenPGP Web of Trust
  8. for ssh authentication. OpenPGP keys are tracked via GnuPG, and added
  9. to the authorized_keys and known_hosts files used by ssh for
  10. connection authentication.
  11. \fBmonkeysphere-server\fP is the MonkeySphere server admin utility.
  12. .SH SUBCOMMANDS
  13. \fBmonkeysphere-server\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(5)), 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 gen-key [HOSTNAME]
  30. Generate a OpenPGP key pair for the host. If HOSTNAME is not
  31. specified, then the system fully-qualified domain name will be user.
  32. An alternate key bit length can be specified with the `-l' or
  33. `--length' option (default 2048). An expiration length can be
  34. specified with the `-e' or `--expire' option (prompt otherwise). A
  35. key revoker fingerprint can be specified with the `-r' or `--revoker'
  36. option. `g' may be used in place of `gen-key'.
  37. .TP
  38. .B show-fingerprint
  39. Show the fingerprint for the host's OpenPGP key. `f' may be used in place of
  40. `show-fingerprint'.
  41. .TP
  42. .B publish-key
  43. Publish the host's OpenPGP key to the keyserver. `p' may be used in
  44. place of `publish-key'.
  45. .TP
  46. .B add-identity-certifier KEYID
  47. Instruct system to trust user identity certifications made by KEYID.
  48. A certifier domain can be specified with the `-n' or `--domain'
  49. option. A certifier trust level can be specified with the `-t' or
  50. `--trust' option (default is `full'). A certifier trust depth can be
  51. specified with the `-d' or `--depth' option (default is 1). `a' may
  52. be used in place of `add-identity-certifier'.
  53. .TP
  54. .B remove-identity-certifier KEYID
  55. Instruct system to ignore user identity certifications made by KEYID.
  56. `r' may be used in place of `remove-identity-certifier'.
  57. .TP
  58. .B list-identity-certifiers
  59. List key IDs trusted by the system to certify user identities. `l'
  60. may be used in place of `list-identity-certifiers'.
  61. .TP
  62. .B help
  63. Output a brief usage summary. `h' or `?' may be used in place of
  64. `help'.
  65. .SH SETUP
  66. In order to start using the monkeysphere, you must first generate an
  67. OpenPGP key for the server and convert that key to an ssh key that can
  68. be used by ssh for host authentication. This can be done with the
  69. \fBgen-key\fP subcommand:
  70. $ monkeysphere-server gen-key
  71. To enable host verification via the monkeysphere, you must then
  72. publish the host's key to the Web of Trust using the \fBpublish-key\fP
  73. command to push the key to a keyserver. Then modify the sshd_config
  74. to tell sshd where the new server host key is located:
  75. HostKey /var/lib/monkeysphere/ssh_host_rsa_key
  76. In order for users logging into the system to be able to verify the
  77. host via the monkeysphere, at least one person (ie. a server admin)
  78. will need to sign the host's key. This is done in the same way that
  79. key signing is usually done, by pulling the host's key from the
  80. keyserver, signing the key, and re-publishing the signature. Once
  81. that is done, users logging into the host will be able to certify the
  82. host's key via the signature of the host admin.
  83. If the server will also handle user authentication through
  84. monkeysphere-generated authorized_keys files, the server must be told
  85. which keys will act as user certifiers. This is done with the
  86. \fBadd-certifier\fP command:
  87. $ monkeysphere-server add-certifier KEYID
  88. where KEYID is the key ID of the server admin, or whoever's signature
  89. will be certifying users to the system. Certifiers can be later
  90. remove with the \fBremove-certifier\fP command, and listed with the
  91. \fBlist-certifiers\fP command.
  92. Remote user's will then be granted access to a local user account
  93. based on the appropriately signed and valid keys associated with user
  94. IDs listed in the authorized_user_ids file of the local user. By
  95. default, the authorized_user_ids file for local users is found in
  96. ~/.config/monkeysphere/authorized_user_ids. This can be changed in
  97. the monkeysphere-server.conf file.
  98. The \fBupdate-users\fP command can then be used to generate
  99. authorized_keys file for local users based on the authorized user IDs
  100. listed in the user's authorized_user_ids file:
  101. $ monkeysphere-server update-users USER
  102. sshd can then use these files to grant access to user accounts for
  103. remote users. If no user is specified, authorized_keys files will be
  104. generated for all users on the system. You must also tell sshd to
  105. look at the monkeysphere-generated authorized_keys file for user
  106. authentication by setting the following in the sshd_config:
  107. AuthorizedKeysFile /var/lib/monkeysphere/authorized_keys/%u
  108. It is recommended to add "monkeysphere-server update-users" to a
  109. system crontab, so that user keys are kept up-to-date, and key
  110. revokations and expirations can be processed in a timely manor.
  111. .SH ENVIRONMENT
  112. The following environment variables will override those specified in
  113. the monkeysphere-server.conf configuration file (defaults in
  114. parentheses):
  115. .TP
  116. MONKEYSPHERE_KEYSERVER
  117. OpenPGP keyserver to use (subkeys.pgp.net).
  118. .TP
  119. MONKEYSPHERE_AUTHORIZED_USER_IDS
  120. Path to user authorized_user_ids file
  121. (%h/.config/monkeysphere/authorized_user_ids).
  122. .TP
  123. MONKEYSPHERE_RAW_AUTHORIZED_KEYS
  124. Path to user-controlled authorized_keys file. `-' means not to add
  125. user-controlled file (%h/.ssh/authorized_keys).
  126. .TP
  127. MONKEYSPHERE_MONKEYSPHERE_USER
  128. User to control authentication keychain (monkeypshere).
  129. .SH FILES
  130. .TP
  131. /etc/monkeysphere/monkeysphere-server.conf
  132. System monkeysphere-server config file.
  133. .TP
  134. /etc/monkeysphere/monkeysphere.conf
  135. System-wide monkeysphere config file.
  136. .TP
  137. /var/lib/monkeysphere/authorized_keys/USER
  138. Monkeysphere-generated user authorized_keys files.
  139. .TP
  140. /var/lib/monkeysphere/ssh_host_rsa_key
  141. Copy of the host's private key in ssh format, suitable for use by
  142. sshd.
  143. .TP
  144. /var/lib/monkeysphere/gnupg-host
  145. Monkeysphere host GNUPG home directory.
  146. .TP
  147. /var/lib/monkeysphere/gnupg-authentication
  148. Monkeysphere authentication GNUPG home directory.
  149. .SH AUTHOR
  150. Written by Jameson Rollins <jrollins@fifthhorseman.net>, Daniel Kahn
  151. Gillmor <dkg@fifthhorseman.net>
  152. .SH SEE ALSO
  153. .BR monkeysphere (1),
  154. .BR monkeysphere (5),
  155. .BR gpg (1),
  156. .BR ssh (1)