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