summaryrefslogtreecommitdiff
path: root/doc/README
blob: bed03806f32e3ee092e1e9b6442e56af7cbd9811 (plain)
  1. Monkeysphere User README
  2. ========================
  3. As a regular user on a system where the monkeysphere package is
  4. installed, you probably want to do a few things:
  5. Keeping your keyring up-to-date
  6. -------------------------------
  7. Regularly refresh your GnuPG keyring from the keyservers. This can be
  8. done with a simple cronjob. An example of crontab line to do this is:
  9. 0 12 * * * /usr/bin/gpg --refresh-keys
  10. This would refresh your keychain every day at noon.
  11. Keeping your known_hosts file in sync with your keyring
  12. -------------------------------------------------------
  13. With your keyring updated, you want to make sure that openssh can
  14. still see the most recent trusted information about who the various
  15. hosts are. This can be done with the monkeysphere-ssh-proxycommand
  16. (see next section) or with the update-known_hosts command:
  17. $ monkeysphere update-known_hosts
  18. This will command will check to see if there is an openpgp key for
  19. each (non-hashed) host listed in the known_hosts file, and then add
  20. the key for that host to the known_hosts file if one is found. This
  21. command could be added to a crontab as well, if desired.
  22. Using monkeysphere-ssh-proxycommand(1)
  23. --------------------------------------
  24. The best way to handle host keys is to use the monkeysphere ssh proxy
  25. command. This command will make sure the known_hosts file is
  26. up-to-date for the host you are connecting to with ssh. The best way
  27. to integrate this is to add the following line to the "Host *" section
  28. of your ~/.ssh/config file:
  29. ProxyCommand monkeysphere-ssh-proxycommand %h %p
  30. Setting up an OpenPGP authentication key
  31. ----------------------------------------
  32. First things first: you'll need to create a new subkey for your
  33. current key, if you don't already have one. If your OpenPGP key is
  34. keyid $GPGID, you can set up such a subkey relatively easily with:
  35. $ monkeysphere gen-subkey $GPGID
  36. Using your OpenPGP authentication key for SSH
  37. ---------------------------------------------
  38. FIXME: Sending the key to the ssh-agent?
  39. FIXME: using the key with a single session?
  40. NOTE: the current version of openpgp2ssh does *not* deal well with
  41. encrypted keys (as of 2008-07-26)
  42. Miscellaneous
  43. -------------
  44. Users can also maintain their own authorized_keys files, for users
  45. that would be logging into their accounts. This is primarily useful
  46. for accounts on hosts that are not already systematically using the
  47. monkeysphere for user authentication. If you're not sure whether this
  48. is the case for your host, ask your system administrator.
  49. If you want to do this as a regular user, use the
  50. update-authorized_keys command:
  51. $ monkeysphere update-authorized_keys
  52. This command will take all the user IDs listed in the
  53. ~/.config/monkeysphere/authorized_user_ids file and check to see if
  54. there are acceptable keys for those user IDs available. If so, they
  55. will be added to the ~/.ssh/authorized_keys file.
  56. You must have indicated reasonable ownertrust in some key for this
  57. account, or no keys will be found with trusted certification paths.
  58. If you find this useful, you might want to place a job like this in
  59. your crontab so that revocations and rekeyings can take place
  60. automatically.