summaryrefslogtreecommitdiff
path: root/man/man1/monkeysphere.1
blob: db35a38f8b8d969437e867d3e89120a73141def4 (plain)
  1. .TH MONKEYSPHERE "1" "June 2008" "monkeysphere 0.1" "User Commands"
  2. .SH NAME
  3. monkeysphere \- Monkeysphere client user interface
  4. .SH SYNOPSIS
  5. .B monkeysphere \fIsubcommand\fP [\fIargs\fP]
  6. .SH DESCRIPTION
  7. \fBMonkeysphere\fP is a framework to leverage the OpenPGP web of trust
  8. for OpenSSH authentication. OpenPGP keys are tracked via GnuPG, and
  9. added to the authorized_keys and known_hosts files used by OpenSSH for
  10. connection authentication.
  11. \fBmonkeysphere\fP is the Monkeysphere client utility.
  12. .SH SUBCOMMANDS
  13. \fBmonkeysphere\fP takes various subcommands:
  14. .TP
  15. .B update-known_hosts [HOST]...
  16. Update the known_hosts file. For each specified host, gpg will be
  17. queried for a key associated with the host URI (see HOST
  18. IDENTIFICATION in monkeysphere(5)), optionally querying a keyserver.
  19. If an acceptable key is found for the host (see KEY ACCEPTABILITY in
  20. monkeysphere(5)), the key is added to the user's known_hosts file. If
  21. a key is found but is unacceptable for the host, any matching keys are
  22. removed from the user's known_hosts file. If no gpg key is found for
  23. the host, nothing is done. If no hosts are specified, all hosts
  24. listed in the known_hosts file will be processed. This subcommand
  25. will exit with a status of 0 if at least one acceptable key was found
  26. for a specified host, 1 if no matching keys were found at all, and 2
  27. if matching keys were found but none were acceptable. `k' may be used
  28. in place of `update-known_hosts'.
  29. .TP
  30. .B update-authorized_keys
  31. Update the authorized_keys file for the user executing the command
  32. (see MONKEYSPHERE_AUTHORIZED_KEYS in ENVIRONMENT, below). First all
  33. monkeysphere keys are cleared from the authorized_keys file. Then, or
  34. each user ID in the user's authorized_user_ids file, gpg will be
  35. queried for keys associated with that user ID, optionally querying a
  36. keyserver. If an acceptable key is found (see KEY ACCEPTABILITY in
  37. monkeysphere(5)), the key is added to the user's authorized_keys file.
  38. If a key is found but is unacceptable for the user ID, any matching
  39. keys are removed from the user's authorized_keys file. If no gpg key
  40. is found for the user ID, nothing is done. This subcommand will exit
  41. with a status of 0 if at least one acceptable key was found for a user
  42. ID, 1 if no matching keys were found at all, and 2 if matching keys
  43. were found but none were acceptable. `a' may be used in place of
  44. `update-authorized_keys'.
  45. .TP
  46. .B gen-subkey [KEYID]
  47. Generate an authentication subkey for a private key in your GnuPG
  48. keyring. For the primary key with the specified key ID, generate a
  49. subkey with "authentication" capability that can be used for
  50. monkeysphere transactions. An expiration length can be specified with
  51. the `-e' or `--expire' option (prompt otherwise). If no key ID is
  52. specified, but only one key exists in the secret keyring, that key
  53. will be used. `g' may be used in place of `gen-subkey'.
  54. .TP
  55. .B help
  56. Output a brief usage summary. `h' or `?' may be used in place of
  57. `help'.
  58. .SH ENVIRONMENT
  59. The following environment variables will override those specified in
  60. the monkeysphere.conf configuration file (defaults in parentheses):
  61. .TP
  62. MONKEYSPHERE_GNUPGHOME, GNUPGHOME
  63. GnuPG home directory (~/.gnupg).
  64. .TP
  65. MONKEYSPHERE_KEYSERVER
  66. OpenPGP keyserver to use (subkeys.pgp.net).
  67. .TP
  68. MONKEYSPHERE_CHECK_KEYSERVER
  69. Whether or not to check keyserver when making gpg queries (`true').
  70. .TP
  71. MONKEYSPHERE_KNOWN_HOSTS
  72. Path to ssh known_hosts file (~/.ssh/known_hosts).
  73. .TP
  74. MONKEYSPHERE_HASH_KNOWN_HOSTS
  75. Whether or not to hash to the known_hosts file entries (`true').
  76. .TP
  77. MONKEYSPHERE_AUTHORIZED_KEYS
  78. Path to ssh authorized_keys file (~/.ssh/authorized_keys).
  79. .SH FILES
  80. .TP
  81. ~/.config/monkeysphere/monkeysphere.conf
  82. User monkeysphere config file.
  83. .TP
  84. /etc/monkeysphere/monkeysphere.conf
  85. System-wide monkeysphere config file.
  86. .TP
  87. ~/.config/monkeysphere/authorized_user_ids
  88. OpenPGP user IDs associated with keys that will be checked for
  89. addition to the authorized_keys file.
  90. .SH AUTHOR
  91. Written by Jameson Rollins <jrollins@fifthhorseman.net>, Daniel
  92. Kahn Gillmor <dkg@fifthhorseman.net>
  93. .SH SEE ALSO
  94. .BR monkeysphere-ssh-proxycommand (1),
  95. .BR monkeysphere-server (8),
  96. .BR monkeysphere (5),
  97. .BR ssh (1),
  98. .BR gpg (1)