summaryrefslogtreecommitdiff
path: root/man/man8/monkeysphere-server.8
blob: 45605dae87f5660114cce9613e8e14c9847edb83 (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
  30. Generate a OpenPGP key pair for the host. `g' may be used in place of
  31. `gen-key'.
  32. .TP
  33. .B show-fingerprint
  34. Show the fingerprint for the host's OpenPGP key. `f' may be used in place of
  35. `show-fingerprint'.
  36. .TP
  37. .B publish-key
  38. Publish the host's OpenPGP key to the keyserver. `p' may be used in
  39. place of `publish-key'.
  40. .TP
  41. .B add-identity-certifier KEYID
  42. Instruct system to trust user identity certifications made by KEYID.
  43. `a' may be used in place of `add-identity-certifier'.
  44. .TP
  45. .B remove-identity-certifier KEYID
  46. Instruct system to ignore user identity certifications made by KEYID.
  47. `r' may be used in place of `remove-identity-certifier'.
  48. .TP
  49. .B list-identity-certifiers
  50. List key IDs trusted by the system to certify user identities. `l'
  51. may be used in place of `list-identity-certifiers'.
  52. .TP
  53. .B help
  54. Output a brief usage summary. `h' or `?' may be used in place of
  55. `help'.
  56. .SH SETUP
  57. In order to start using the monkeysphere, you must first generate an
  58. OpenPGP key for the server and convert that key to an ssh key that can
  59. be used by ssh for host authentication. This can be done with the
  60. \fBgen-key\fP subcommand:
  61. $ monkeysphere-server gen-key
  62. To enable host verification via the monkeysphere, you must then
  63. publish the host's key to the Web of Trust using the \fBpublish-key\fP
  64. command to push the key to a keyserver. Then modify the sshd_config
  65. to tell sshd where the new server host key is located:
  66. HostKey /var/lib/monkeysphere/ssh_host_rsa_key
  67. In order for users logging into the system to be able to verify the
  68. host via the monkeysphere, at least one person (ie. a server admin)
  69. will need to sign the host's key. This is done in the same way that
  70. key signing is usually done, by pulling the host's key from the
  71. keyserver, signing the key, and re-publishing the signature. Once
  72. that is done, users logging into the host will be able to certify the
  73. host's key via the signature of the host admin.
  74. If the server will also handle user authentication through
  75. monkeysphere-generated authorized_keys files, the server must be told
  76. which keys will act as user certifiers. This is done with the
  77. \fBadd-certifier\fP command:
  78. $ monkeysphere-server add-certifier KEYID
  79. where KEYID is the key ID of the server admin, or whoever's signature
  80. will be certifying users to the system. Certifiers can be later
  81. remove with the \fBremove-certifier\fP command, and listed with the
  82. \fBlist-certifiers\fP command.
  83. Remote user's will then be granted access to a local user account
  84. based on the appropriately signed and valid keys associated with user
  85. IDs listed in the authorized_user_ids file of the local user. By
  86. default, the authorized_user_ids file for local users is found in
  87. ~/.config/monkeysphere/authorized_user_ids. This can be changed in
  88. the monkeysphere-server.conf file.
  89. The \fBupdate-users\fP command can then be used to generate
  90. authorized_keys file for local users based on the authorized user IDs
  91. listed in the user's authorized_user_ids file:
  92. $ monkeysphere-server update-users USER
  93. sshd can then use these files to grant access to user accounts for
  94. remote users. If no user is specified, authorized_keys files will be
  95. generated for all users on the system. You must also tell sshd to
  96. look at the monkeysphere-generated authorized_keys file for user
  97. authentication by setting the following in the sshd_config:
  98. AuthorizedKeysFile /var/lib/monkeysphere/authorized_keys/%u
  99. It is recommended to add "monkeysphere-server update-users" to a
  100. system crontab, so that user keys are kept up-to-date, and key
  101. revokations and expirations can be processed in a timely manor.
  102. .SH FILES
  103. .TP
  104. /etc/monkeysphere/monkeysphere-server.conf
  105. System monkeysphere-server config file.
  106. .TP
  107. /etc/monkeysphere/monkeysphere.conf
  108. System-wide monkeysphere config file.
  109. .TP
  110. /var/lib/monkeysphere/authorized_keys/USER
  111. Monkeysphere-generated user authorized_keys files.
  112. .TP
  113. /var/lib/monkeysphere/ssh_host_rsa_key
  114. Copy of the host's private key in ssh format, suitable for use by
  115. sshd.
  116. .TP
  117. /var/lib/monkeysphere/gnupg-host
  118. Monkeysphere host GNUPG home directory.
  119. .TP
  120. /var/lib/monkeysphere/gnupg-authentication
  121. Monkeysphere authentication GNUPG home directory.
  122. .SH AUTHOR
  123. Written by Jameson Rollins <jrollins@fifthhorseman.net>, Daniel Kahn
  124. Gillmor <dkg@fifthhorseman.net>
  125. .SH SEE ALSO
  126. .BR monkeysphere (1),
  127. .BR monkeysphere (5),
  128. .BR gpg (1),
  129. .BR ssh (1)