summaryrefslogtreecommitdiff
path: root/man/man1/monkeysphere.1
blob: 762f008b4d0a7be3d426de3b60939877bdb1cf47 (plain)
  1. .TH MONKEYSPHERE "1" "June 2008" "monkeysphere 0.1" "User Commands"
  2. .SH NAME
  3. monkeysphere \- MonkeySphere client user interface
  4. .PD
  5. .SH SYNOPSIS
  6. .B monkeysphere \fIcommand\fP [\fIargs\fP]
  7. .PD
  8. .SH DESCRIPTION
  9. .PP
  10. MonkeySphere is a system to leverage the OpenPGP Web of Trust for ssh
  11. authentication and encryption. OpenPGP keys are tracked via GnuPG,
  12. and added to the ssh authorized_keys and known_hosts files to be used
  13. for authentication and encryption of ssh connection.
  14. \fBmonkeysphere\fP is the MonkeySphere client utility.
  15. .PD
  16. .SH SUBCOMMANDS
  17. \fBmonkeysphere\fP takes various subcommands:
  18. .TP
  19. .B update-known_hosts [HOST]...
  20. Update the known_hosts file. For each specified host, gpg will be
  21. queried for a key associated with the host URI (see HOST URIs),
  22. querying a keyserver if none is found in the user's keychain. search
  23. for a gpg key for the host in the Web of Trust. If a key is found, it
  24. will be added to the host_keys cache (see KEY CACHES) and any ssh keys
  25. for the host will be removed from the user's known_hosts file. If the
  26. found key is acceptable (see KEY ACCEPTABILITY), then the host's gpg
  27. key will be added to the known_hosts file. If no gpg key is found for
  28. the host, then nothing is done. If no hosts are specified, all hosts
  29. listed in the known_hosts file will be processed. `k' may be used in
  30. place of `update-known_hosts'.
  31. .TP
  32. .B update-userids [USERID]...
  33. Add/update a user ID to the authorized_user_ids file. The user IDs
  34. specified should be exact matches to OpenPGP user IDs. For each
  35. specified user ID, gpg will be queried for a key associated with that
  36. user ID, querying a keyserver if none is found in the user's keychain.
  37. If a key is found, it will be added to the user_keys cache (see KEY
  38. CACHES) and the user ID will be added to the user's
  39. authorized_user_ids file (if it wasn't already present). `u' may be
  40. used in place of `update-userids'.
  41. .TP
  42. .B remove-userids [USERID]...
  43. Remove a user ID from the authorized_user_ids file. The user IDs
  44. specified should be exact matches to OpenPGP user IDs. `r' may be
  45. used in place of `remove-userids'.
  46. .TP
  47. .B update-authorized_keys
  48. Update the monkeysphere authorized_keys file. The monkeysphere
  49. authorized_keys file will be regenerated from the valid keys in the
  50. user_key cache, and the user's independently controlled
  51. authorized_keys file (usually ~/.ssh/authorized_keys). `a' may be
  52. used in place of `update-authorized_keys'.
  53. .TP
  54. .B gen-ae-subkey KEYID
  55. Generate an `ae` capable subkey. For the primary key with the
  56. specified key ID, generate a subkey with "authentication" and
  57. "encryption" capability that can be used for MonkeySphere
  58. transactions. `g' may be used in place of `gen-ae-subkey'.
  59. .TP
  60. .B help
  61. Output a brief usage summary. `h' or `?' may be used in place of
  62. `help'.
  63. .PD
  64. .SH KEY ACCEPTABILITY
  65. GPG keys are considered acceptable if the following criteria are met:
  66. .PD
  67. .TP
  68. .B capability
  69. The key must have both the "authentication" and "encrypt" capability
  70. flags.
  71. .TP
  72. .B validity
  73. The key must be "fully" valid, and must not be expired or revoked.
  74. .PD
  75. .SH KEY CACHES
  76. Monkeysphere keeps track of keys in key cache directories. The files
  77. in the cache are named with the format "USERID_HASH.PUB_KEY_ID", where
  78. USERID_HASH is a hash of the exact OpenPGP user ID, and PUB_KEY_ID is
  79. the key ID of the primary key. If the user/key ID combo exists in the
  80. Web of Trust but is not acceptable, then the file is empty. If the
  81. primary key has at least one acceptable sub key, then an ssh-style
  82. key, converted from the OpenPGP key, of all acceptable subkeys will be
  83. stored in the cache file, one per line. known_hosts style key lines
  84. will be stored in the host_keys cache files, and authorized_keys style
  85. key lines will be stored in the user_keys cache files. OpenPGP keys
  86. are converted to ssh-style keys with the openpgp2ssh utility (see `man
  87. openpgp2ssh').
  88. .PD
  89. .SH FILES
  90. .PD 1
  91. .TP
  92. ~/.config/monkeysphere/monkeysphere.conf
  93. User monkeysphere config file.
  94. .TP
  95. /etc/monkeysphere/monkeysphere.conf
  96. System-wide monkeysphere config file.
  97. .TP
  98. ~/.config/monkeysphere/authorized_user_ids
  99. GPG user IDs associated with keys that will be checked for addition to
  100. the authorized_keys file.
  101. .TP
  102. ~/.config/monkeysphere/authorized_keys
  103. Monkeysphere generated authorized_keys file.
  104. .TP
  105. ~/.config/monkeysphere/user_keys
  106. User keys cache directory.
  107. .TP
  108. ~/.config/monkeysphere/host_keys
  109. Host keys cache directory.
  110. .PD
  111. .SH AUTHOR
  112. Written by Jameson Rollins <jrollins@fifthhorseman.net>
  113. .PD
  114. .SH SEE ALSO
  115. .BR ssh (1),
  116. .BR monkeysphere-ssh-proxycommand (1),
  117. .BR gpg (1),
  118. .BR monkeysphere-server (8)