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